templateUrl does not work for me

后端 未结 7 1622
有刺的猬
有刺的猬 2021-01-05 09:07

I use the seed structure as per angular.io get started project. Everything OK so far.

Now I wanted to change the top component to have a view from a separated file a

7条回答
  •  一生所求
    2021-01-05 09:52

    You have to write path from the build path.

    templateUrl: 'build/app.component.html'
    

提交回复
热议问题