Reputation: 387
<body ng-controller="MainController as mainCtrl" ng-app="MyApp">
<div header page="'Test'" ></div>
<div id="main" class="app-body" ng-controller="MyController as ctrl">
<my-grid-list></my-grid-list>
</div>
</body>
I am trying to figure out how the header is constructed. I expect it to be something like
<header-bar></header-bar>
. However, it gives header
. Is it an attribute or some dialect of AngularJS syntax? This is AngularJS.
Upvotes: 0
Views: 86
Reputation: 48968
The header
attribute is not a core directive in AngularJS. It could be a custom directive. Check the code for the app to see if it is defined there.
I found this.
MyApp.directive('header', function () {. // ... })
That is indeed a custom directive.
For more information, see
Upvotes: 1