| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 3× 3× 3× 1× | import {PageViewAbstract} from './PageView';
class UserViewController extends PageViewAbstract {
/** @ngInject */
constructor($timeout, $state, $stateParams, githubService) {
super($timeout, $state, githubService);
this.query = $stateParams.user || '';
}
$onInit() {
this.initView('users', this.query);
}
}
export const UserView = {
template: require('./UserView.html'),
controller: UserViewController
};
|