Created
December 1, 2014 15:28
-
-
Save Qvatra/e9a198e98f29897ffbf5 to your computer and use it in GitHub Desktop.
ionic development: app.ts
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
/// <reference path="_reference.ts"/> | |
interface IAppRootScopeService extends ng.IRootScopeService { | |
online: boolean; | |
lastScrollTimestamp: number; | |
isScrolling: () => boolean; | |
onScroll: () => void; | |
} | |
var myApp: ng.IModule = angular.module("angularApp", [ | |
"ngSanitize", | |
"ionic", | |
"directive.bindonce", | |
]); | |
// registering services | |
myApp.service("serviceName", myNameSpace.MyServiceClassName); | |
// UI routing (Learn more here: https://github.com/angular-ui/ui-router) | |
myApp.config(($stateProvider, $urlRouterProvider) => { | |
$stateProvider.state("view", { | |
url: "/view", | |
templateUrl: "views/view.html", | |
controller: "ViewController" | |
}); | |
}); | |
// Entry point | |
myApp.run( | |
function ( | |
$rootScope: ft.IAppRootScopeService | |
) { | |
// myApp entry point | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment