Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script src="angular.min.js"></script>
- <script src="angular-route.js"></script>
- <script src="app.js"></script>
- <meta charset="utf8">
- </head>
- <body ng-app="routeApp">
- <a href="#/test">TEST</a>
- <ng-view></ng-view>
- </body>
- var app=angular.module('routeApp' ,[])
- .config(function($routeProvider){
- $routeProvider.when('/test' , {
- templateUrl : 'test.html'
- });
- });
- <html>
- <body>
- <h1>TEST PAGE</h1>
- </body>
- </html>
Add Comment
Please, Sign In to add comment