Skip to content

Instantly share code, notes, and snippets.

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