Search Posts

Category: yeoman-generator-angular

Yeoman angular navigation route not working after successful composing

Yeoman angular navigation not working after successful composing. The code in index.html seems like below. <div class=”collapse navbar-collapse” id=”js-navbar-collapse”> <ul class=”nav navbar-nav”> <li class=”active”><a href=”#/”>Home</a></li> <li><a ng-href=”#/about”>About</a></li> <li><a ng-href=”#/”>Contact</a></li> </ul> </div> Initial url after grunt serve seems like http://localhost:9000/#!/ . While clicking Home tab the url seems like http://localhost:9000/#!/#%2F . And while clicking About tab the url seems like http://localhost:9000/#!/#%2Fabout How to solve the issue ? Source: AngularJS

Uncaught TypeError: Cannot read property ‘attributes’ of undefined

Hello everyone i am trying to perform delete operation in my web app,when i am deleting an element from DB, in console its showing this error.Please give your valuable solution for this Thanks in advance. Uncaught TypeError: Cannot read property ‘attributes’ of undefined at _clearTreeSelection (orphanController.js:888) at Scope.$scope.clearSelection (orphanController.js:659) at HTMLDivElement.<anonymous> (orphanController.js:1058) at line number 888 this is my code: //This is to clear the selectedNode of angular tree on modal close _clearTreeSelection = function […]