Есть страница Index.html, в которой рендерится компонент:
<body class="m-a-1">
<app> </app>
</body>
Есть app.component:
import { Component } from
"@angular/core";
@Component({
selector: 'app',
template: '<store></store>'
})
export class AppComponent { }
Есть также store.component.ts:
import { Component } from
"@angular/core";
import { Product } from
"../model/product.model";
import { ProductRepository } from
"../model/product.repository";
@Component({
selector: "store",
moduleId: module.id,
templateUrl:
"store.component.html"
})
export class StoreComponent { }
Ну и соответственно store.component.html:
<div class="navbar navbar-inverse bg-inverse">
<a class="navbar-brand">SPORTS STORE</a>
</div>
Проблема в том, что у меня не подгружается template: '<store></store>
в app.component и собственно store.html-страница. Что не так сделано?
app.module.ts
покажитеStoreModule
покажите