textAngular内角度ui模态

时间:2015-02-10 12:19:53

标签: angularjs twitter-bootstrap

我试图在模态中渲染textAngular textarea但它不会渲染,有人可以帮我吗?我也尝试插入代码,但它没有用。我在下面的代码中使用了它。

script type="text/ng-template" id="myModalContent.html">
<div class="modal-header">
    <h3 class="modal-title">Edit Job</h3>
</div>
<div class="modal-body">
    <div class="form-group col-lg-6">
        <label>Job Title</label>
        <input type="text" name="title" class="form-control" id="title" ng-model="form.title" placeholder="Title">
    </div>
    <div class="form-group col-lg-6">
        <label>Job ID</label>
        <input type="id" name="id" class="form-control" id="id" ng-model="form.id" placeholder="ID">
    </div>
    <div class="form-group col-lg-6">
        <label>Location</label>
        <input type="location" name="location" class="form-control" id="location" ng-model="form.location" placeholder="Coventry, United Kingdom">
    </div>
    <div class="form-group col-lg-6">
        <label>Salary</label>
        <input type="salary" name="salary" class="form-control" id="salary" ng-model="form.salary" placeholder="200000">
    </div>
    <div class="form-group col-lg-6">
        <label>Job Type</label>
        <input type="type" name="type" class="form-control" id="type" ng-model="form.type" placeholder="Type">
    </div>
    <div class="form-group col-lg-12">
        <label>Job Description</label>
        <text-angular ng-model="form.description"></text-angular>
    </div>
    <br/>

</div>
<div class="modal-footer">
</div>

1 个答案:

答案 0 :(得分:1)

这可能是以下三个问题之一:

  1. 您尚未在模块中加载textAngular,即angular.module('moduleName', ['textAngular'])
  2. 您实际上并没有加载所有textAngular文件。
  3. 您尚未加入textAngular.css
  4. 检查您的控制台是否有错误消息,这可能会让您继续进行更多操作。