javascript - console.log always printing same thing when code is different in Angular 1 app -
i trying complete angular 1.5 tutorial youtube series: angular 1.5 tutorial. angular 1 because work still uses , need become better it.
the problem follows: created blog-list.component.js , blog-list.module.js file along app.module.js file. writing console.log() message in component file says console.log("hello sir");
, had console.log("hello");
. whenever try change console.log message console logs hello, not updated console message. not sure have done wrong, can't seem able find mistake. perhaps might able see it? here file contents:
blog-list.component.js:
'use strict'; angular.module('bloglist'). controller('bloglistcontroller', function() { console.log("hello sir"); });
blog-list.module.js:
'use strict'; angular.module('bloglist', []);
app.module.js:
'use strict'; angular.module('try', ['bloglist']);
index.html file:
<!doctype html> <html ng-app='try'> <head> <meta charset="utf-8"> <title>let's build angular!</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.5/angular.min.js" type="text/javascript"></script> <script src="./js/app/app.module.js"></script> <script src="./js/app/app.config.js"></script> <script src="./js/app/blog-list/blog-list.module.js"></script> <script src="./js/app/blog-list/blog-list.component.js"></script> </head> <body> <input type="text" ng-model='name'> <h2>this going working angular page <span ng-if="name">{{ name }}</span><span ng-if="!name">world</span></h2> <div class='' ng-controller='bloglistcontroller'> </div> </body> </html>
i have feeling mistake stupid, can't see it. appreciated!
sounds more cache issue rather anything, did try open chrome developer option , click network -> disable cache ctrl + f5
Comments
Post a Comment