mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-23 11:56:39 +08:00
docs(ngRoute): ask for examples to have their base[href] fixed
This commit is contained in:
@@ -36,7 +36,9 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
|
||||
* - Otherwise enable scrolling only if the `autoscroll` attribute value evaluated
|
||||
* as an expression yields a truthy value.
|
||||
* @example
|
||||
<example module="ngViewExample" deps="angular-route.js;angular-animate.js" animations="true">
|
||||
<example name="ngView-directive" module="ngViewExample"
|
||||
deps="angular-route.js;angular-animate.js"
|
||||
animations="true" fixBase="true">
|
||||
<file name="index.html">
|
||||
<div ng-controller="MainCntl as main">
|
||||
Choose:
|
||||
|
||||
@@ -269,7 +269,7 @@ function $RouteProvider(){
|
||||
Note that this example is using {@link ng.directive:script inlined templates}
|
||||
to get it working on jsfiddle as well.
|
||||
|
||||
<example module="ngViewExample" deps="angular-route.js">
|
||||
<example name="$route-service" module="ngRouteExample" deps="angular-route.js" fixBase="true">
|
||||
<file name="index.html">
|
||||
<div ng-controller="MainCntl">
|
||||
Choose:
|
||||
@@ -302,7 +302,7 @@ function $RouteProvider(){
|
||||
</file>
|
||||
|
||||
<file name="script.js">
|
||||
angular.module('ngViewExample', ['ngRoute'])
|
||||
angular.module('ngRouteExample', ['ngRoute'])
|
||||
|
||||
.config(function($routeProvider, $locationProvider) {
|
||||
$routeProvider.when('/Book/:bookId', {
|
||||
|
||||
Reference in New Issue
Block a user