templateUrl does not work for me

后端 未结 7 1671
有刺的猬
有刺的猬 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 10:02

    use full path like app/app.component.html or use absolute path like ./app.component.html ./ for same directory

提交回复
热议问题