Skip to content

Commit 6f05035

Browse files
docs(ngRoute): ask for examples to have their base[href] fixed
1 parent 5c6f9f8 commit 6f05035

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/ngRoute/directive/ngView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
3636
* - Otherwise enable scrolling only if the `autoscroll` attribute value evaluated
3737
* as an expression yields a truthy value.
3838
* @example
39-
<example module="ngViewExample" deps="angular-route.js;angular-animate.js" animations="true">
39+
<example name="ngView-directive" module="ngViewExample"
40+
deps="angular-route.js;angular-animate.js"
41+
animations="true" fixBase="true">
4042
<file name="index.html">
4143
<div ng-controller="MainCntl as main">
4244
Choose:

src/ngRoute/route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function $RouteProvider(){
269269
Note that this example is using {@link ng.directive:script inlined templates}
270270
to get it working on jsfiddle as well.
271271
272-
<example module="ngViewExample" deps="angular-route.js">
272+
<example name="$route-service" module="ngRouteExample" deps="angular-route.js" fixBase="true">
273273
<file name="index.html">
274274
<div ng-controller="MainCntl">
275275
Choose:
@@ -302,7 +302,7 @@ function $RouteProvider(){
302302
</file>
303303
304304
<file name="script.js">
305-
angular.module('ngViewExample', ['ngRoute'])
305+
angular.module('ngRouteExample', ['ngRoute'])
306306
307307
.config(function($routeProvider, $locationProvider) {
308308
$routeProvider.when('/Book/:bookId', {

0 commit comments

Comments
 (0)