Skip to content

Instantly share code, notes, and snippets.

@chanakaDe
Created September 26, 2017 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chanakaDe/9d5260fa2142ce3db8206ad93f1f3d64 to your computer and use it in GitHub Desktop.
Save chanakaDe/9d5260fa2142ce3db8206ad93f1f3d64 to your computer and use it in GitHub Desktop.
import {autoinject} from 'aurelia-framework';
import {HttpClient} from "aurelia-fetch-client";
import {Steam} from './steam';
import {BaseI18N} from 'aurelia-i18n';
@autoinject
export class Producers extends BaseI18N {
producers = 'Producers Page!';
steam:Steam;
users = [];
selectedUser = "";
login_status = false;
welcome_msg = "";
//constructor(steam:Steam , i18n : BaseI18N) {
// this.steam = steam;
// this.i18n = BaseI18N
//}
activate() {
this.getProducers();
this.login_status = this.steam.loginp();
console.log("LOGIN STATUS in producers : ", this.login_status);
this.welcome_msg = this.i18n.tr('welcome');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment