Skip to content

Instantly share code, notes, and snippets.

@wKoza
Created February 21, 2017 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wKoza/6337fecf2fcba78451dc76377a7302e2 to your computer and use it in GitHub Desktop.
Save wKoza/6337fecf2fcba78451dc76377a7302e2 to your computer and use it in GitHub Desktop.
@Injectable()
export class ConfigService {
public message: string;
constructor() {
}
load(): Promise<boolean> {
return new Promise<boolean>((resolve) => {
setTimeout(() => {
this.message = "Hello World";
console.log('hello world');
resolve(true);
}, 5000);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment