Skip to content

Instantly share code, notes, and snippets.

@Qvatra
Created December 1, 2014 15:28
Show Gist options
  • Save Qvatra/e9a198e98f29897ffbf5 to your computer and use it in GitHub Desktop.
Save Qvatra/e9a198e98f29897ffbf5 to your computer and use it in GitHub Desktop.
ionic development: app.ts
/// <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