Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ngTestApp = angular.module('angularTestApp', ['ngRoute']);
- ngTestApp.config(function ($routeProvider) {
- $routeProvider.when('/:page', {
- templateUrl: function (url) {
- return '/views/' + url.page + '.html'
- }
- })
- .otherwise('/', {
- templateUrl: 'index.html'
- });
- });
- ngTestApp.controller('ContentController', function ($scope, $http) {
- });
Advertisement
Add Comment
Please, Sign In to add comment