Answer the question
In order to leave comments, you need to log in
AngularJs and passing data by $location.path()?
how to get vm.q and vm.items in the template that $location.path throws on
The search function is in the NavbarController
In the routing like this:
Template:
<h3>Результат поиска по запросу: {{vm.q}}</h3>
<ul ng-repeat='item in vm.items'>
<li>{{item.name}}</li>
</ul>
</span>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question