Angularjs 角度1.5组件模板URL不工作

Angularjs 角度1.5组件模板URL不工作,angularjs,angularjs-directive,gulp,components,Angularjs,Angularjs Directive,Gulp,Components,我刚刚开始使用Angular 1.5组件,并有以下代码片段 angular.module('vizzle').component('teacher', { bindings: {}, /* @ngInject */ templateUrl: '/app/components/teacher/teacher.component.html', /* @ngInject */ controller: function($state, $timeout, UserProfileSer

我刚刚开始使用Angular 1.5组件,并有以下代码片段

angular.module('vizzle').component('teacher', {
  bindings: {},
  /* @ngInject */
  templateUrl: '/app/components/teacher/teacher.component.html',
  /* @ngInject */
  controller: function($state, $timeout, UserProfileService, TeacherService){
    //controller code in here
  }
});
当我使用gulp-serve在本地机器上运行应用程序时,它是从.tmp/serve提供的,并且一切正常。然而,当我吞下build然后吞下service:dist时,它无法解析templateUrl,说它找不到它。我使用了与上面完全相同的代码,但带有一个指令,它工作得很好。有没有办法让templateUrl使用Angular 1.5组件