all files / src/app/views/ UserView.js

100% Statements 4/4
100% Branches 2/2
100% Functions 2/2
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19                             
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
};