GithubHelp home page GithubHelp logo

angular-ui-router-i18n's People

Contributors

darlanmendonca avatar simon-wicki avatar vizo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular-ui-router-i18n's Issues

update just url

Hi!

What if we only need to update the url?

Is ui-router-i18n supposed to work with $state.go($state.$current.name, {locale:new_locale}, {notify:false, reload:false}); ??

Explanation (To whom it may concern):

Say, $rootScope.locale gets changed upon $stateParams.locale watch, and if $rootScope.locale changes to new value, trigger a routerTranslation. Now, with normal :urlParams I am able to translate them from my own logic, however we cannot have 2 states with the same number of urlparams (say /:x1/:x2 ) it will only present the first provided state with those 2 urls.
After changing to this ui-router-i18n, I thought about mixing both concepts (ui-router-i18n with my :urlParams translation based by keys if they are available). It works fine, however, changing between languages triggers a reload, even if I try $state.go($state.$current.name, newParams, {notify:false, reload:false});

So, since most of us would use 'angular translate' it seams normal that we only need to replace the url, save it to history and end of story. Of course, landing on locale specific URL should be handled by ui-router-i18n, and that's fine, because I triger my routerTranslate() by translation event only.

Thanks in advance

Problem - ui-sref or $state.go redirect to the same state with different parameter

Hi,

I'm writing angular app with ui-router & angular-ui-router-i18n.
When I'm going between different states everything runs well, but if i'm on a state and I'm trying go to the same state but with different parameter I ends up with this error -> http://prntscr.com/7l2c5e

http://www.whiteisbrightblack.cz/swnmoravia/cs/kategorie/combined
http://prntscr.com/7l2pa5

I tried use only ui-router also with ui-router-extras but its the same...

Thank you for reply and have a nice day.
M.D.

ui-sref and $state.href stange issue...

Hi there. Awesome provider ๐Ÿ‘

It's working great when I use ng-href="{{$state.href('public.about', {locale: $stateParams.locale})}}" in a link, but once I try to use ui-sref="public.about({locale: $stateParams.locale})" the link just doesn't functions...

Have you seen this behavior?
Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.