We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830516a commit 65cb691Copy full SHA for 65cb691
app/js/app.js
@@ -4,7 +4,7 @@
4
// Declare app level module which depends on filters, and services
5
angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
6
config(['$routeProvider', function($routeProvider) {
7
- $routeProvider.when('/view1', {template: 'partials/partial1.html', controller: MyCtrl1});
8
- $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});
9
$routeProvider.otherwise({redirectTo: '/view1'});
10
}]);
0 commit comments