I have this code
var app = angular.module('myapp', ['ui.router']);
app.config([ '$stateProvider', '$urlRouteProvider', function($stateProvider, $urlRouteProvider) {}]);
In HTML
<html ng-app="myapp">
and it gives me an
[$injector:modulerr] error
Here is uglify output
var app=angular.module("myapp",["ui.router"]);app.config(["$stateProvider","$urlRouteProvider",function(r,e){}]);
How I load this files
<script type="text/javascript" src="node_modules/angular/angular.min.js"></script>
<script type="text/javascript" src="http://ift.tt/1Pw7PKB"></script>
<script type="text/javascript" src="minjs/all.js"></script>
Aucun commentaire:
Enregistrer un commentaire