aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngView.js
diff options
context:
space:
mode:
authorMisko Hevery2012-05-17 16:36:18 -0700
committerMisko Hevery2012-06-01 17:01:10 -0700
commit0a6e464a93d9a1e76a624b356054ce9ca4015f55 (patch)
tree46af841a16abbc7ab77843837e4b4d386ce1ab83 /src/ng/directive/ngView.js
parent7c2428218893f59c6a4499667488009ca67f3385 (diff)
downloadangular.js-0a6e464a93d9a1e76a624b356054ce9ca4015f55.tar.bz2
feat($route): rename template -> tempalteUrl and add support for inline templates
BREAKING CHANGE: template in $route definition is now templateUrl To migrate just rename `template` to `templateUrl`.
Diffstat (limited to 'src/ng/directive/ngView.js')
-rw-r--r--src/ng/directive/ngView.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/directive/ngView.js b/src/ng/directive/ngView.js
index 1d2a5d29..28646822 100644
--- a/src/ng/directive/ngView.js
+++ b/src/ng/directive/ngView.js
@@ -49,11 +49,11 @@
<file name="script.js">
angular.module('ngView', [], function($routeProvider, $locationProvider) {
$routeProvider.when('/Book/:bookId', {
- template: 'book.html',
+ templateUrl: 'book.html',
controller: BookCntl
});
$routeProvider.when('/Book/:bookId/ch/:chapterId', {
- template: 'chapter.html',
+ templateUrl: 'chapter.html',
controller: ChapterCntl
});