Hello I have SPA application with angularjs and I dont know how to create component with template url.
My directory structure is:
SpaApp
- Scripts
- App
- test.component.js
- Controllers
- Views
- Home
- test.component.cshtml
test.component.js
app.component("appTest", {
templateUrl: 'test.component.cshtml', //what is the address here?
transclude: true,
controller: function AppTest() {}
})
I tried add url to Views/Home/test.component.cshtml and it was not working. Then I tried add html template to same folder as is the component javascript and it is not working too. Where is my problem? What is the address to html template for component? Thanks you