javascript - Why ui router iterates in resolve function by utf-8 url prarams ( in some browsers) -
i have route this:
$stateprovider.state('show', { url: "/page/:uuid/:title", views: { "": { templateurl: themeprefix + '/views/showcase.html', controller: 'showctrl', resolve: { showdate: function (searchrequests, $stateparams) { // send http request depended on uuid param return searchrequests.getextend($stateparams.uuid); } } }, "footer": { templateurl: themeprefix + '/views/footer.html', controller: 'footerctrl', resolve: { popularareas: function (webservices) { // send http request return webservices.getpopularareas(); } } } } })
the title
param in url, can persian word, separated -
.
(e.g. domain.com/page/53f198db0fdf0/مثال-با-فاصله
)
in browsers phantomjs
, router's resolve function iterate causes log: watchers fired in last 5 iterations
, multiple requests server!
but it's work on chrome, firefox, , etc.
p.s: controller specified in route (in example above showctrl
), not execute @ in situation.
Comments
Post a Comment