Created
April 2, 2015 07:52
-
-
Save svs/6d4131a91f80a3fdbb1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rBusApp = angular.module('rBusApp', ['restangular','ui.router']); | |
rBusApp.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider) { | |
$urlRouterProvider.otherwise('/'); | |
$stateProvider. | |
state('index', | |
{url: '/', templateUrl: "landing.html", controller: 'landingController'} | |
). | |
state('routes', | |
{url: '/routes', templateUrl: "routes.html", controller: 'routesController'} | |
). | |
state('pay', | |
{url: '/pay', templateUrl: "pay.html", controller: 'paymentsController'} | |
); | |
}]); | |
.... | |
angular.module('rBusApp'). | |
controller('paymentsController',['$scope', function($scope) {}]); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment