Skip to content

Instantly share code, notes, and snippets.

@yajd
Created July 6, 2015 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yajd/b0ae3ac44bcb69740b6f to your computer and use it in GitHub Desktop.
Save yajd/b0ae3ac44bcb69740b6f to your computer and use it in GitHub Desktop.
onDeviceReady: function() {
oApp._app = angular.module('smartApp', [
'ngRoute',
'ngTouch',
'ngResource',
'smartAppConfig',
'smartAppServices',
'smartAppControllers',
'smartAppDirectives',
'smartAppHelpers'
]).config(appRoute).run(function($rootScope, $route, $location) {
$rootScope.$on('$locationChangeSuccess', function(a, b, c) {
if (isBack) {
isBack = false;
$location.path().search({
isBack: '1'
});
}
});
});
angular.element(document).ready(function() {
angular.bootstrap(document, ['smartApp']);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment