The invenioSearchLoading directive
Example
Usage:
<invenio-search-loading
message='{{ _('Loading') }}'
template='TEMPLATE_PATH'>
... Any children directives
</invenio-search-loading>
Methods
(static) link(scope, element, attrs, vm)
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. |
(static) templateUrl(element, attrs)
Choose template for search loading
Parameters:
Name | Type | Description |
---|---|---|
element |
service | Element that this direcive is assigned to. |
attrs |
service | Attribute of this element. |
Example
Minimal template `template.html` usage
<div ng-show='vm.invenioSearchLoading'>
<i class='fa fa-loading'></i> {{ loadingMessage }}
</div>