Wednesday, August 6, 2014

Angular JS weird error


Uncaught Error: [$injector:nomod] http://errors.angularjs.org/1.2.21/$injector/nomod?p0=ljhnfkjkfnjksdnf





So I encountered these error today and only to find out the solution is just to include



<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0rc1/angular-route.min.js"></script>




then inject that module in your module like these


var app = angular.module('myapp', ['ngRoute']);



et viola ! error message gone!



No comments:

Post a Comment