Wednesday, August 6, 2014

Angular JS weird error

Uncaught Error: [$injector:nomod]$injector/nomod?p0=ljhnfkjkfnjksdnf

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

<script src=""></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