Search Posts

Category: yeoman-generator-angular

yo angular and font awesome with local serve

I have just migrated an angularJs application to yo angular. I thought everything was working fine, but it turns out that font awesome was not loading in production or locally. I edited the Gruntfile and set some rules to move fonts into a fonts directory like so: }, { expand: true, cwd: ‘bower_components/bootstrap-sass/assets/fonts/bootstrap’, src: ‘*’, dest: ‘<%= yeoman.dist %>/fonts’ }, { expand: true, cwd: ‘bower_components/components-font-awesome/webfonts’, src: ‘*’, dest: ‘<%= yeoman.dist %>/fonts’ }] And then I […]

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 […]