I´d like to use the component router to create a navigation list (e.g Home
- Dashboards - Dashboard 1). I´m including my current view with <ngoutlet>.
Do I have to add the <page-menu> component in every sub-component or is it
possible to include it in 1 place?
My main template:
<page-header></page-header>
<main-menu></main-menu>
<ng-outlet></ng-outlet>
<page-footer></page-footer>
Then for example my articles.component.html:
<page-menu></page-menu>
<h1>List Articles</h1>
And my articles.component.js
.component('articles', {
bindings: {
$router: '<'
},
templateUrl: 'components/articles/articles.component.html',
controller: function () {
console.log(this.$router);
}
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.