Skip to content

Instantly share code, notes, and snippets.

@arjunblj
Created February 7, 2015 15:47
Show Gist options
  • Save arjunblj/626f3be50d9233b9af3c to your computer and use it in GitHub Desktop.
Save arjunblj/626f3be50d9233b9af3c to your computer and use it in GitHub Desktop.
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