diff options
| author | Misko Hevery | 2012-05-17 16:36:18 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-06-01 17:01:10 -0700 |
| commit | 0a6e464a93d9a1e76a624b356054ce9ca4015f55 (patch) | |
| tree | 46af841a16abbc7ab77843837e4b4d386ce1ab83 /docs | |
| parent | 7c2428218893f59c6a4499667488009ca67f3385 (diff) | |
| download | angular.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 'docs')
| -rw-r--r-- | docs/content/cookbook/deeplinking.ngdoc | 4 | ||||
| -rw-r--r-- | docs/content/tutorial/step_07.ngdoc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/content/cookbook/deeplinking.ngdoc b/docs/content/cookbook/deeplinking.ngdoc index 491e3b79..1e9c0161 100644 --- a/docs/content/cookbook/deeplinking.ngdoc +++ b/docs/content/cookbook/deeplinking.ngdoc @@ -35,8 +35,8 @@ In this example we have a simple app which consist of two screens: angular.module('deepLinking', ['ngSanitize']) .config(function($routeProvider) { $routeProvider. - when("/welcome", {template:'welcome.html', controller:WelcomeCntl}). - when("/settings", {template:'settings.html', controller:SettingsCntl}); + when("/welcome", {templateUrl:'welcome.html', controller:WelcomeCntl}). + when("/settings", {templateUrl:'settings.html', controller:SettingsCntl}); }); AppCntl.$inject = ['$scope', '$route'] diff --git a/docs/content/tutorial/step_07.ngdoc b/docs/content/tutorial/step_07.ngdoc index f8b5cf52..f0812278 100644 --- a/docs/content/tutorial/step_07.ngdoc +++ b/docs/content/tutorial/step_07.ngdoc @@ -72,8 +72,8 @@ __`app/js/app.js`:__ angular.module('phonecat', []). config(['$routeProvider', function($routeProvider) { $routeProvider. - when('/phones', {template: 'partials/phone-list.html', controller: PhoneListCtrl}). - when('/phones/:phoneId', {template: 'partials/phone-detail.html', controller: PhoneDetailCtrl}). + when('/phones', {templateUrl: 'partials/phone-list.html', controller: PhoneListCtrl}). + when('/phones/:phoneId', {templateUrl: 'partials/phone-detail.html', controller: PhoneDetailCtrl}). otherwise({redirectTo: '/phones'}); }]); </pre> |
