Created
December 1, 2014 15:44
-
-
Save Qvatra/1f6e9c5eafa0e532d931 to your computer and use it in GitHub Desktop.
ionic development: MyService.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'/> | |
module myNameSpace { | |
"use strict"; | |
export class MyServiceClassName { | |
public static $inject = [ | |
"$log" | |
]; | |
public pubVar: string; | |
private privVar: string; | |
constructor( | |
private $log: ng.ILogService | |
) { | |
privVar = ‘5’; | |
} | |
someFunction(element): number { | |
return parseInt(privVar, 10); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment