Closed agamdua closed 10 years ago
Initially proposed route (for record sake):
Proposed route:
initialSearch: function($resource) {
return $resource('/api/search/:keywords')
keywords: '@keywords'
}
Where
:keywords
will be the search query separated by dashes.
Recommended on IRC to use $httpbackend as a mock and write some dummy filters to prototype Angular functionality without necessarily communicating with a backend.
The Angular docs on filters have an example featuring search functionality.
Also, description of Angular filters from docs:
Selects a subset of items from array and returns it as a new array.
@gpranav88 - can you have a look at the search controller (line 166, clothzy.js, branch: search).
It's obviously WIP, need to brainstorm a little when I come in.
Branch name: 'search'