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
var things = [ | |
//...Array of things to process... | |
]; | |
var methodThatReturnsPromise() = function { | |
// Must be executed on all the things | |
// In order | |
// return a promise | |
}; |
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
@Injectable() | |
export class HttpService { | |
private urlRoot:String; | |
constructor(private _http: Http, | |
private userService:UserService) { | |
this.urlRoot = 'https://api.myapp.com'; | |
if(host == 'localhost'){ | |
this.urlRoot = 'http://localhost:4040'; |