mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Update README.md
This commit is contained in:
@@ -74,13 +74,6 @@ Also make sure you include these dependencies in your `index.html` file:
|
|||||||
|
|
||||||
## Basic usage example
|
## Basic usage example
|
||||||
|
|
||||||
**my.component.html**
|
|
||||||
|
|
||||||
```html
|
|
||||||
<alfresco-datatable
|
|
||||||
[data]="data">
|
|
||||||
</alfresco-datatable>
|
|
||||||
```
|
|
||||||
|
|
||||||
**my.component.ts**
|
**my.component.ts**
|
||||||
|
|
||||||
@@ -93,7 +86,8 @@ import {
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-view',
|
selector: 'my-view',
|
||||||
templateUrl: './my.component.html',
|
template: `<alfresco-datatable [data]="data">
|
||||||
|
</alfresco-datatable>`,
|
||||||
directives: [ALFRESCO_DATATABLE_DIRECTIVES]
|
directives: [ALFRESCO_DATATABLE_DIRECTIVES]
|
||||||
})
|
})
|
||||||
export class MyView {
|
export class MyView {
|
||||||
|
Reference in New Issue
Block a user