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