dependabot[bot] on npm_and_yarn
build(deps): bump trim-off-newl… (compare)
dependabot[bot] on npm_and_yarn
build(deps): bump async from 2.… (compare)
"dependencies": {
"@angular/animations": "^8.2.9",
"@angular/cdk": "^8.2.3",
"@angular/common": "^8.2.9",
"@angular/compiler": "^8.2.9",
"@angular/compiler-cli": "^8.2.9",
"@angular/core": "^8.2.9",
"@angular/forms": "^8.2.9",
"@angular/material": "^8.2.3",
"@angular/platform-browser": "^8.2.9",
"@angular/platform-browser-dynamic": "^8.2.9",
"@angular/platform-server": "^8.2.9",
"@angular/router": "8.2.9",
"@angular/upgrade": "^8.2.9",
"@uirouter/angular": "6.0.1",
"@uirouter/angular-hybrid": "9.0.0",
"@uirouter/core": "6.0.1",
"@uirouter/rx": "^0.6.5",
"core-js": "^2.5.4",
"zone.js": "^0.10.2",
"rxjs": "^6.5.5",
"rxjs-compat": "^6.5.5",
}
@Gabe So all my state configurations look something like this:
config.$inject = ['$stateProvider', '$provide'];
function config($stateProvider, $provide) {
$stateProvider
.state('engagements', {
url: '/engagements',
redirectTo: 'engagements.home',
template: '<engagement-app />'
})
.state('engagements.home', {
url: '/home',
views: {
'main@engagements': {
template: '<parent-engagement-list />'
}
}
})
If that helps clarify things.
@uirouter/angular-hybrid
brings 1.x along for the ride, but it's best to do the 1.x upgrade while still your project is still pure angularjs
I'm wondering why the StateRegistry.get() method doesn't allow for a more specific/constrained search. I have a situation where our application is trying to decide whether or not a state has already been registered, but it's getting a match on a parent future state declaration - which, is kind of throwing a wrench in our logic. There doesn't appear to be a way to ask the StateRegistry if a specific state is present or not, without accidentally matching this future state.
Maybe I'm not so much wondering "why" the .get() method matches 'example.**' when trying to fetch 'example.specific-child' - I mean, it makes sense; the wildcard state would match at runtime. It's just inconvenient for my needs, since I need to make sure that 'example.specific-child' actually exists or not during configuration and there doesn't seem to be a way to query the StateRegistry in this manner.
exactMatch
or ignoreWildcards
param added to the method signature would be ideal)
it(
'should call my transition hook',
mock.inject(($uiRouter, $rootScope) => {
$uiRouter.stateRegistry.register({ name: 'foo' });
$uiRouter.stateRegistry.register({ name: 'bar' });
const spy = jasmine.createSpy('hookFn');
$uiRouter.transitionService.onStart({ to: 'foo' }, spy);
$uiRouter.stateService.go('foo');
$rootScope.$digest();
expect(spy).toHaveBeenCalled();
}),
);
it(
'should not call my transition hook',
mock.inject(($uiRouter, $rootScope) => {
$uiRouter.stateRegistry.register({ name: 'foo' });
$uiRouter.stateRegistry.register({ name: 'bar' });
const spy = jasmine.createSpy('hookFn');
$uiRouter.transitionService.onStart({ to: 'foo' }, spy);
$uiRouter.stateService.go('bar');
$rootScope.$digest();
expect(spy).not.toHaveBeenCalled();
}),
);
Hello folks, could you please help me to figure out.
I'm using the following uirouter versions:
"@uirouter/angular": "6.0.1",
"@uirouter/angular-hybrid": "10.0.1",
"@uirouter/angularjs": "1.0.25",
"@uirouter/core": "6.0.4",
All main states are lazyloaded
The application gets stuck in one of the pages when I quickly (very quickly) switch between pages that use lazy loading. After this, when I click at the application tabs, I see that the transitions are processed correctly but ui-view is not updated. It always shows page that got stuck.
trace.js:172 Transition #2-0: <- Rejected "Transition#2( 'app.admin.logs.list'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} -> 'app.admin.settings.**'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[],"remainder":"undefined"} )", reason: Transition Rejection($id: 1 type: 2, message: The transition has been superseded by a different transition, detail: 'app.admin.settings.cluster'{})
trace.js:135 Transition #3-0: Started -> "Transition#3( 'app.admin.logs.list'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} -> 'app.admin.settings.cluster'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} )"
trace.js:178 Transition #3-0: <- Success "Transition#3( 'app.admin.logs.list'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} -> 'app.admin.settings.cluster'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} )", final state: app.admin.settings.cluster
trace.js:172 Transition #5-0: <- Rejected "Transition#5( 'app.admin.settings.cluster'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} -> 'app.admin.replications.**'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[],"remainder":"undefined"} )", reason: Transition Rejection($id: 2 type: 2, message: The transition has been superseded by a different transition, detail: 'app.admin.replications'{})
trace.js:135 Transition #6-0: Started -> "Transition#6( 'app.admin.settings.cluster'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} -> 'app.admin.replications'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[],"xdcrDetails":"undefined"} )"
trace.js:178 Transition #6-0: <- Success "Transition#6( 'app.admin.settings.cluster'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} -> 'app.admin.replications'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[],"xdcrDetails":"undefined"} )", final state: app.admin.replications
trace.js:172 Transition #4-0: <- Rejected "Transition#4( 'app.admin.settings.cluster'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} -> 'app.admin.security.**'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27
trace.js:135 Transition #7-0: Started -> "Transition#7( 'app.admin.settings.cluster'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} -> 'app.admin.security.roles.user'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[],"openedUsers":"undefined","startFrom":"null","startFromDomain":"null","sortBy":"id","order":"asc","substr":"","pageSize":20} )"
trace.js:178 Transition #7-0: <- Success "Transition#7( 'app.admin.settings.cluster'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[]} -> 'app.admin.security.roles.user'{"enableInternalSettings":"null","disablePoorMansAlerts":"null","commonBucket":"null","commonScope":"null","commonCollection":"null","scenarioZoom":"minute","scenario":"t27nj82mk","openedGroups":[],"openedUsers":"undefined","startFrom":"null","startFromDomain":"null","sortBy":"id","order":"asc","substr":"","pageSize":20} )", final state: app.admin.security.roles.user
import { UIRouter } from '@uirouter/angular';
constructor(public uiRouter: UIRouter){
this.uiRouter.stateService.go('user.options');
}