angular controller not working while using ie9 browser .it's throw below error
typeerror: unable value of property 'nodename': object null or undefinedundefined
same code working fine (ie>9 , chrome ,firefox);
my js code is
var app = angular.module('app',[]); app.controller('ctrl',function($scope){ alert('sa'); console.log($scope); });
my html code is
<!doctype html> <html ng-app="app"> .... ... ... <body id="top" ng-controller="greetingcontroller"> ..
and also
scope variable undefined while getting scope variable angularjs
var scope = angular.element($("#top")).scope();
thank you
your ng-controller="greetingcontroller"
while controller file has name ctrl
apart follow guidelines dictated here ie. https://docs.angularjs.org/guide/ie
another associated link same... check html markup. https://github.com/angular/angular.js/issues/3172
Comments
Post a Comment