Hi Sander,
I actually found out what was wrong.
this bit was catching, anything which was after slash was considered as ID.
Thats why it didn't work.
.when('/notes/:id', {
whenever I tried accessed
/notes/new
word "new" was considered as param and angular routed it to '/notes/:id'.
My solution is, I have put route containing '/notes/:id'. In the end of
$routeProvider.
Is there any other solution, If I wanted to have it ordered my own way.
Let's say actions to same controller keep together, etc...
Thanks
Roman
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.