migrate code to 1.0.0rc11
authorIgor Minar <igor@angularjs.org>
Mon, 11 Jun 2012 07:56:16 +0000 (00:56 -0700)
committerIgor Minar <igor@angularjs.org>
Mon, 11 Jun 2012 07:56:16 +0000 (00:56 -0700)
app/js/app.js

index 795f1db..15743d7 100644 (file)
@@ -4,7 +4,7 @@
 // Declare app level module which depends on filters, and services
 angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
   config(['$routeProvider', function($routeProvider) {
-    $routeProvider.when('/view1', {template: 'partials/partial1.html', controller: MyCtrl1});
-    $routeProvider.when('/view2', {template: 'partials/partial2.html', controller: MyCtrl2});
+    $routeProvider.when('/view1', {templateUrl: 'partials/partial1.html', controller: MyCtrl1});
+    $routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: MyCtrl2});
     $routeProvider.otherwise({redirectTo: '/view1'});
   }]);