The cdsRecordView directive
Example
Usage:
<cds-record-view
template='TEMPLATE_PATH'>
</cds-record-view>
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 |
cdsRecordCtrl
|
CERN Document Server record controller. |
(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. |
Example
Minimal template `template.html` usage
{{ record.title_statement.title }}