//app.js
var myApp=angular.module("firstApp",["ngRoute"]);
myApp.config(function($routeProvider){
$routeProvider.when('/',
 {
controller:"AppCtrl",
templateUrl:"zippy.html"
 })
})
;
myApp.controller("AppCtrl",function($scope,$route){

$scope.model{

message:'This is Show orders screen';
 
 });
//main html
<script src="js/angular.js">
</script> <script 
src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.7/angular-route.js";> 
<script src="js/app.js"></script> 
</body> 

//zippy.html 
<h1>{{model.message}}</h1>


//console:

 Uncaught Error: [$injector:modulerr] Failed to instantiate module firstApp 
due to:
Error: [$injector:nomod] Module 'firstApp' is not available! You either 
misspelled the module name or forgot to load it. If registering a module 
ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.2.27/$injector/nomod?p0=firstApp
 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to