Namespace: invenioSearchBar

invenioSearchBar

The invenioSearchBar directive
Source:

Example

Usage:
   <invenio-search-bar
    placeholder='Start typing'
    template='TEMPLATE_PATH'>
       ... Any children directives
   </invenio-search-bar>

Methods

Force apply the attributes to the scope
Parameters:
Name Type Description
scope service The scope of this element.
element service Element that this direcive is assigned to.
attrs service Attribute of this element.
vm invenioSearchController Invenio search controller.
Source:

(static) templateUrl(element, attrs)

Choose template for search bar
Parameters:
Name Type Description
element service Element that this direcive is assigned to.
attrs service Attribute of this element.
Source:
Example
Minimal template `template.html` usage
       <input
         ng-model='vm.invenioSearchArgs.params.q'
         placeholder='{{ placeholder }}'
        />

(static) updateQuery()

Assign the user's query to invenioSearchArgs.params.q
Source: