From 0a6e464a93d9a1e76a624b356054ce9ca4015f55 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 17 May 2012 16:36:18 -0700 Subject: 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`. --- src/ng/directive/ngView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ng/directive') 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 @@ 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 }); -- cgit v1.2.3 '>nganimate-docs-at-symbol-HTML-entity-to-character
aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/compile/ctreq.ngdoc
blob: 47c876a31ef5b221231fed85459a0e281fbe85da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49