by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 10 15:35

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • Aug 10 15:35
    dependabot-preview[bot] closed #271
  • Aug 10 15:35
    dependabot-preview[bot] commented #271
  • Aug 10 15:35
    dependabot-preview[bot] labeled #280
  • Aug 10 15:35
    dependabot-preview[bot] opened #280
  • Aug 10 15:35

    dependabot-preview[bot] on npm_and_yarn

    build(deps): bump preact from 8… (compare)

  • Aug 10 15:34

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • Aug 10 15:34
    dependabot-preview[bot] closed #276
  • Aug 10 15:34
    dependabot-preview[bot] commented #276
  • Aug 10 15:34
    dependabot-preview[bot] labeled #279
  • Aug 10 15:34
    dependabot-preview[bot] opened #279
  • Aug 10 15:34

    dependabot-preview[bot] on npm_and_yarn

    build(deps-dev): bump css-loade… (compare)

  • Aug 09 21:12
    uirouterbot labeled #278
  • Aug 09 21:12
    uirouterbot opened #278
  • Aug 09 19:19

    mergify[bot] on master

    chore(package): Update 1 devDep… (compare)

  • Aug 09 19:19
    mergify[bot] closed #242
  • Aug 09 19:16
    mergify[bot] synchronize #242
  • Aug 09 19:14

    mergify[bot] on master

    chore(package): Update 1 depend… (compare)

  • Aug 09 19:14
    mergify[bot] closed #243
  • Aug 09 19:11
    uirouterbot labeled #243
Cody Mikol
@codymikol
@christopherthielen It turned out state.taget wasn't working for me because I wasn't returning it in my resolve. Doing that made it work properly.
As for the second thing, I'll see if I can make a codepen demonstrating.
Cody Mikol
@codymikol
@christopherthielen This is an example of the second issue I'm having https://codepen.io/codymikol/pen/GBXabE
Basically I can't seem to get any path variables from $stateParams when used in another factory
Cody Mikol
@codymikol
@christopherthielen is there documentation on $state.target anywhere, I'm having trouble finding information about it, I'm assuming it must be what $state.go uses under the hood with specific options.
Sorry to completely bombard you with questions, I really appreciate the help you're giving me.
Tom McKearney
@tommck

@codymikol Yeah, I see what you are saying with the codepen. It's like the ui-router's usage of $injector (I assume that's what it's using) is not "recursing" and injecting into the Factory as well.

I guess short-term you could just pass $stateParams to the factory while you wait

Mark Clark
@daerogami

I've run into a puzzling issue. I have an AngularJS app (v1.4.8) with ui-router (v1.0.15)
It runs in chrome, firefox and edge; however, does not run anymore in IE11 (it has worked in the past on the same packages)
...Error: [$injector:modulerr] Failed to instantiate module ui.router.init due to: TypeError: Object doesn't support property or method 'find' at getParamDeclaration (http://local.wpr/node_modules/@uirouter/angularjs/release/angular-ui-router.js?v=636695016979932334:1603:9)...

Im aware that IE11 doesnt support array.prototype.find() but that doesnt explain how this worked previously. I tried adding a polyfill for find and I still get the same error. Has anyone encountered this?

Mark Clark
@daerogami
scratch that... i just hardcoded a polyfill from a CDN instead of letting ocLazyLoad add it. Its working now. Still no idea how it worked in the past w/o this polyfill
Chris Thielen
@christopherthielen
@codymikol this confusion is why injecting $stateParams is now deprecated
The object injected into anything transition scoped (i.e., resolves and routed controllers) is not the same as the global $stateParams service object
@codymikol here's some information on redirecting using TargetState: https://ui-router.github.io/guide/transitionhooks#redirecting-a-transition
@daerogami sorry about the .find() problem. this has been fixed in master and will be released shortly.
Chris Thielen
@christopherthielen
@daerogami in short, ui-router shouldn't be publishing code that uses ES6 features
Cody Mikol
@codymikol
Thanks @christopherthielen
Tom McKearney
@tommck
All, w/ ui-router in Angular, can we have parent/child states yet only have one ui-view? Samples seem to add a child view. I was thinking of parent/child stats for modularity (especially when lazy loading modules)
Cody Mikol
@codymikol
I believe you have to add another ui view if you want nested children
You can just add that as the template of the state
Tom McKearney
@tommck
thanks. I figured that was the answer. still might work out ok for me. I guess at worst, the parent state could just have a ui-view in it :)
Cody Mikol
@codymikol
I’m doing exactly that, it should he’s as simple as template:”<div ui-view></div>”
Tom McKearney
@tommck
yeah :) I'll probably do that. Thanks
Tom McKearney
@tommck
In Angular, if you use UiRouterModule.forChild(... states), does that mean these are parent/child view like states? in other words, do I need parent/child ui-views?
Chris Thielen
@christopherthielen
forChild only means that the Angular Module is not the root angular module. It doesn't imply anything about parent/child state relationships
Tom McKearney
@tommck
oh, cool. so we could actually configure states in individual modules rather than all in one place
Chris Thielen
@christopherthielen
it's the same pattern (forRoot/forChild) you see in many angular libs
yes
Tom McKearney
@tommck
yeah, still haven't gotten 100% used to that yet :)
Chris Thielen
@christopherthielen
yeah it's weird :)
Tom McKearney
@tommck
Thanks for the quick response @christopherthielen
Chris Thielen
@christopherthielen
:thumbsup:
Phong ca
@phongca22
$stateChangeStart is not fired in the first time when using manual bootstraping. When I go to another state, it's working, what is happening in this case?
Zurie
@zurie

@christopherthielen have you ever seen this? I am trying to update from Angular 5 to angular6 ui-router, etc. angular 5.2.5 is working great with UI-Router 1.1.0 not sure what happens or if its ui-router, but i can't get angular 6 to update properly for the life of me, when I feel like I have everything correct and all my packages seem ready i run the app and i get bombarded with these errors.

ERROR in ./src/app/welcome/welcome.component.ts
Module not found: Error: Can't resolve '../resize.service' in '/Users/Zuriel/Repository/ZA2017/src/app/welcome'
ERROR in ./src/za.module.ts
Module not found: Error: Can't resolve './app/bar/bar.module' in '/Users/Zuriel/Repository/ZA2017/src'
ERROR in ./src/za.module.ts
Module not found: Error: Can't resolve './app/baz/baz.service' in '/Users/Zuriel/Repository/ZA2017/src'
ERROR in ./src/za.module.ts
Module not found: Error: Can't resolve './app/foo/foo.module' in '/Users/Zuriel/Repository/ZA2017/src'
ERROR in ./src/za.module.ts
Module not found: Error: Can't resolve './app/footer/footer.component' in '/Users/Zuriel/Repository/ZA2017/src'
ERROR in ./src/za.module.ts
Module not found: Error: Can't resolve './app/header/header.component' in '/Users/Zuriel/Repository/ZA2017/src'
ERROR in ./src/za.module.ts
Module not found: Error: Can't resolve './app/header/nav/nav.component' in '/Users/Zuriel/Repository/ZA2017/src'
ERROR in ./src/za.module.ts
Module not found: Error: Can't resolve './app/myapi.service' in '/Users/Zuriel/Repository/ZA2017/src'
ERROR in ./src/za.module.ts
Module not found: Error: Can't resolve './app/sidenav-service.service' in '/Users/Zuriel/Repository/ZA2017/src'
ERROR in ./src/app/welcome/welcome.module.ts
Module not found: Error: Can't resolve './hello/hello.component' in '/Users/Zuriel/Repository/ZA2017/src/app/welcome'
ERROR in ./src/za.module.ts
Module not found: Error: Can't resolve 'ui-router-ng2' in '/Users/Zuriel/Repository/ZA2017/src'
ERROR in ./src/app/error/error.module.ts
Module not found: Error: Can't resolve 'ui-router-ng2' in '/Users/Zuriel/Repository/ZA2017/src/app/error'
ERROR in ./src/app/welcome/welcome.module.ts
Module not found: Error: Can't resolve 'ui-router-ng2' in '/Users/Zuriel/Repository/ZA2017/src/app/welcome'

the thing is, half of that crap isn't even part of my project.. can't find bar/bar.module, etc those were things I started with a year + ago and have deleted so long ago, why are they even showing up...

Zurie
@zurie
nvmd figured it out
Chris Thielen
@christopherthielen
I don’t understand the question
Zurie
@zurie
@codymikol like this <a uiSref="^">Go Back</a>
when not in a parent relationship.. cant you just use the URL of what it is?
like "/" or "home" or whatever your state you want it to be is?
Cody Mikol
@codymikol
Well I have a back button that I want to just bring you back one path
And a state that is /workflow as well as one that is /workflow:workflowId
The second is not a parent of the first
So calling state.go(‘^’) will attempt to go to an abstract root state that I have
I ended up making everything have a parent child relationship
Which works but not really as I’d like it to
As we have requirements that we should not retain any data between different states
Tom McKearney
@tommck
Hey all, does anyone know which of the LifeCycle hooks occurs just before resolve parameters for the next state are evaluated? I find it hard to understand the order of operations in a state transition
tommck @tommck thinks it's onExit