如何在angularjs 5混合应用程序中使用angularjs控制器(angularjs和angularjs)

如何在angularjs 5混合应用程序中使用angularjs控制器(angularjs和angularjs),angularjs,angular,Angularjs,Angular,我们的应用程序是用angularjs编写的,使用angularjs的迁移速度并不慢,因为angularjs中已经有很多其他控制器和指令,我计划创建混合应用程序 我正在尝试在一个角度组件中使用angularjs控制器,如何使其工作 <!--The content below is only a placeholder and can be replaced.--> <div style="text-align:center" style="height: 800px;wi

我们的应用程序是用angularjs编写的,使用angularjs的迁移速度并不慢,因为angularjs中已经有很多其他控制器和指令,我计划创建混合应用程序

我正在尝试在一个角度组件中使用angularjs控制器,如何使其工作

    <!--The content below is only a placeholder and can be replaced.-->
<div style="text-align:center" style="height: 800px;width: 800px;">
  <h1>
    Welcome to {{ title }}!
  </h1>
  <button (click)="addItem()">add item</button>
  <gridster [options]="options">
      <gridster-item [item]="item" *ngFor="let item of dashboard">
          <div (mousedown)="$event.stopPropagation()" (touchstart)="$event.stopPropagation()">
              Some content to click without dragging the widget
            </div>
            <div class="item-buttons">
              <button md-icon-button md-raised-button class="drag-handler">                  
                  <div style="width: 50px;height: 50px">open_with</div>
              </button>
              <button md-icon-button md-raised-button class="remove-button" (click)="removeItem($event, item)"
                      (touchstart)="removeItem($event, item)" mdTooltip="Remove">
                <div style="width: 50px;height: 50px">clear</div>
              </button>
            </div>
            <div ng-controller="myCtrl">
                First Name:
                <input type="text" ng-model="firstName">
                <br> Last Name:
                <input type="text" ng-model="lastName">
                <br>
                <br> Full Name: {{firstName + " " + lastName}}
              </div>
      </gridster-item>
    </gridster>
</div>

欢迎来到{{title}}!
添加项
单击某些内容而不拖动小部件
开
清楚的
名字:

姓氏:

全名:{{firstName+“”+lastName}
在上面的代码中,我添加了以下部分,它使用angularjs控制器。但我的应用程序不起作用,如果我同时使用,它就会起作用

 <div ng-controller="myCtrl">
                First Name:
                <input type="text" ng-model="firstName">
                <br> Last Name:
                <input type="text" ng-model="lastName">
                <br>
                <br> Full Name: {{firstName + " " + lastName}}
              </div>

名字:

姓氏:

全名:{{firstName+“”+lastName}
您确定要使用AngularJS中间件和Angular中间件的应用程序吗?你认为这是个好主意吗?我不知道你到底有什么错误,但也许这对你来说是个好消息:ngzone是Angular zoneyes内部或外部执行代码的Angular服务,因为我们有一个用angularjs构建的相当大的应用程序,现在慢慢地我们添加了一些Angular组件,但是现在你有一个应用程序,有两个不同的框架独立工作(而不是一个“轻量级”框架),如果它是一个大的应用程序,可能会有性能损失。顺便问一下,关于你的问题,你的错误到底是什么?或者没有错误,只是控制器没有执行其工作,您是否检查了它是否正常?我得到的错误与此类似,我已经在这里复制了我的示例应用程序