I simply cloned the angular seed project and added a directive as shown below:
.directive('dataGrid',function(){
return{
restrict: 'E',
template : '<h1>HHHIII</h1>'
}
})
But when I use the directive <data-grid></data-grid> the HTML content is not displayed. Can any one point out what I'm missing ?
And when I inspect the page in browser, here is what I see
<div ng-view="" class="ng-scope">
<data-grid class="ng-scope"></data-grid>
</div>
replace: true