Hello friends!
I have the next:
my “game-nav.html” file
my “index.html” file
my “app.js” file
Here, my app.js script code:
<script>
var app = angular.module('store',[]);
app.directive('gameNav',function(){
return {
restrict : 'E',
templateUrl : 'game-nav.html',
controller : function(){
this.tab = 1;
this.selectTab = function(setTab){
this.tab = setTab;
};
this.isSelected = function(chekTab){
return this.tab === chekTab;
}
},
controllerAs : 'panel'
};
});
</script>
In my index.html I have wrote:
<game-nav></game-nav>
I have already added ng-app=”store” to html tag.
When I run the web page the tag doesn’t being interpreted :s just put <game-nav></game-nav> and not the contents file :S
Somebody can help me?
Thanks for your time.