src/app/components/cache-node.component.ts
Loads data for a node from the cache or from the API.
selector | [cache-node] |
template |
Properties |
Inputs |
constructor(dataService: DataService)
|
||||||
Parameters :
|
lazy | |
Type : boolean
|
|
Default value : true
|
|
If true, this component will subscribe to the node lazily (i.e. it will not fetch new data if data is cached already) |
node | |
Type : NodeId
|
|
The node that will be loaded. |
itemTemplate |
Decorators :
@ContentChild(ItemDirective, {read: TemplateRef})
|
node$ |
Type : DataNode<>
|
nodeSub |
Type : Subscription
|