@@ -1261,23 +1261,38 @@ angularWidget("@ng:non-bindable", noop);
1261
1261
<doc:source>
1262
1262
<script>
1263
1263
function MyCtrl($route) {
1264
- $route.when('/overview', {controller: OverviewCtrl, template: 'guide.overview.html'});
1265
- $route.when('/bootstrap', {controller: BootstrapCtrl, template: 'guide.bootstrap.html'});
1266
- console.log(window.$route = $route);
1264
+ $route.when('/overview',
1265
+ { controller: OverviewCtrl,
1266
+ template: 'guide/dev_guide.overview.html'});
1267
+ $route.when('/bootstrap',
1268
+ { controller: BootstrapCtrl,
1269
+ template: 'guide/dev_guide.bootstrap.auto_bootstrap.html'});
1267
1270
};
1268
1271
MyCtrl.$inject = ['$route'];
1269
1272
1270
1273
function BootstrapCtrl(){}
1271
1274
function OverviewCtrl(){}
1272
1275
</script>
1273
1276
<div ng:controller="MyCtrl">
1274
- <a href="#/overview">overview</a> | <a href="#/bootstrap">bootstrap</a> | <a href="#/undefined">undefined</a><br/>
1277
+ <a href="#/overview">overview</a> |
1278
+ <a href="#/bootstrap">bootstrap</a> |
1279
+ <a href="#/undefined">undefined</a>
1280
+
1281
+ <br/>
1282
+
1275
1283
The view is included below:
1276
1284
<hr/>
1277
1285
<ng:view></ng:view>
1278
1286
</div>
1279
1287
</doc:source>
1280
1288
<doc:scenario>
1289
+ it('should load templates', function(){
1290
+ element('.doc-example-live a:contains(overview)').click();
1291
+ expect(element('.doc-example-live ng\\:view').text()).toMatch(/Developer Guide: Overview/);
1292
+
1293
+ element('.doc-example-live a:contains(bootstrap)').click();
1294
+ expect(element('.doc-example-live ng\\:view').text()).toMatch(/Developer Guide: Initializing Angular: Automatic Initiialization/);
1295
+ });
1281
1296
</doc:scenario>
1282
1297
</doc:example>
1283
1298
*/
0 commit comments