App.get ('router'). Send causing this error. Uncaught TypeError: cannot override property: __ember1346884664897

Does anyone have any idea why I am getting this error:

Uncaught TypeError: Cannot redefine property: __ember1346884664897 

when calling:

 App.get('router').send('tags') 

I am making a call from one of my views, the router is in the correct state, and as far as I can tell, I am doing everything from the book.

Would really appreciate any ideas ...

Created an entity that can help explain the situation a little better. https://gist.github.com/3647288

+4
source share
2 answers

App.router.send('something') will look for a function called something in your current state, but you are trying to use the name of the route there. You should have something like showTags in your router and use App.router.send('showTags') .

Go to the docs http://docs.emberjs.com/#doc=Ember.Router&src=false docs and look at the Transitions Between States

+4
source

I had this problem when I named the action and state in the same way. Perhaps now you have the same thing.

0
source

Source: https://habr.com/ru/post/1432593/


All Articles