-
-
Save arjunblj/626f3be50d9233b9af3c to your computer and use it in GitHub Desktop.
This file contains 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
app = angular.module('app', ['ionic', 'ionic.ion.headerShrink']) | |
app.run(($ionicPlatform) -> | |
$ionicPlatform.ready -> | |
cordova.plugins.Keyboard.hideKeyboardAccessoryBar true if window.cordova and window.cordova.plugins.Keyboard | |
StatusBar.styleDefault() if window.StatusBar | |
return | |
return | |
) | |
app.config ($stateProvider, $urlRouterProvider) -> | |
$stateProvider.state('home', | |
url: '/' | |
templateUrl: 'templates/login.html' | |
controller: 'LoginController' | |
).state('app.oauth_callback', | |
url: '/oauth-callback' | |
templateUrl: 'templates/test.html' | |
controller: 'LoginController' | |
) | |
# If none of the above states are matched, use this as the fallback. | |
$urlRouterProvider.otherwise '/' | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment