Skip to content

Instantly share code, notes, and snippets.

@mttmccb
Forked from chanakaDe/sample.ts
Last active September 26, 2017 18:18
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 mttmccb/9558ed019277333e52ebf393922d5222 to your computer and use it in GitHub Desktop.
Save mttmccb/9558ed019277333e52ebf393922d5222 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, I18N} from 'aurelia-i18n';
import {EventAggregator} from 'aurelia-event-aggregator';
@autoinject()
export class Producers extends BaseI18N {
producers = 'Producers Page!';
users = [];
selectedUser = "";
login_status = false;
welcome_msg = "";
constructor(
public steam:Steam,
public i18n : I18N,
public element: Element,
public ea: EventAggregator) {
super(i18n, element, ea);
}
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