blob: 22eb2de7da31e90c459b93037cc96bcce3ffbb0a (
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
 | <!doctype html>
<html ng-app="example">
  <head>
    <title>angular dev sandbox</title>
    <script src="../src/loader.js"></script>
    <script>
      setupModuleLoader(window);
      angular.module('example', [], function($routeProvider) {
        $routeProvider.when('/view1', {controller: MyCtrl, template: 'view1.html'});
        $routeProvider.when('/view2', {controller: MyCtrl, template: 'view2.html'});
        function MyCtrl($location, $scope) {
          $scope.url = function() {
            return $location.url();
          }
        };
      });
    </script>
    <script src="../src/angular-bootstrap.js"></script>
  </head>
  <body>
    <p>
      <a href="#/view1">view1</a> | <a href="#/view2">view2</a> | <a href="#">blank</a>
    </p>
    <hr>
    <div ng-view></div>
  </body>
</html>
 |