相关疑难解决方法(0)

Angular - 组件中module.id的含义是什么?

在一个Angular应用程序中,我看到它@Component有属性moduleId.这是什么意思?

module.id没有在任何地方定义时,该应用仍然有效.它怎么还能运作?

@Component({
  moduleId: module.id,
  selector: 'ng-app',
  templateUrl: 'app.component.html',
  styleUrls: ['app.component.css'],
  directives: [AppComponent]
});
Run Code Online (Sandbox Code Playgroud)

systemjs angular2-components angular

216
推荐指数
3
解决办法
7万
查看次数

标签 统计

angular ×1

angular2-components ×1

systemjs ×1