Fangfanghao
Fangfanghao
I add the ouput shell before if resolves. Like this: ``` import path from 'path'; import { runner, Logger } from 'hygen'; const defaultTemplates = path.join(__dirname, '../_templates'); runner(process.argv.slice(2), { templates:...
I just found that this works as expected(replace history): ```jsx stateService.go(stateName, params, {source: 'url'}) ``` I know 'stateService' is from '@uirouter/core'. Maybe I should go to create an issue there.
Is this a bug? Does anyone know the reason?
This is a workaround. Do it the angular way: inject the provider. onEnter: ['$transition$', '$state$', (trans, state) => { console.log(state.name); }],