mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Readme updates
This commit is contained in:
committed by
Mario Romano
parent
3e76581cc6
commit
98f3cc25f8
@@ -89,7 +89,7 @@ The TypeScript version of the code above is:
|
||||
```ts
|
||||
import { OnInit } from '@angular/core';
|
||||
|
||||
class Component1 implements OnInit {
|
||||
class SampleClass1 implements OnInit {
|
||||
|
||||
constructor() {
|
||||
console.log('ctor called');
|
||||
@@ -102,9 +102,10 @@ class Component1 implements OnInit {
|
||||
}
|
||||
```
|
||||
|
||||
### Mapping template with component class
|
||||
|
||||
In order to map **form runtime template** with the corresponding component class
|
||||
you will need registering both parts with `adf.registerComponent` api:
|
||||
you will need registering both parts with `adf.registerComponent(identifier, class)` api:
|
||||
|
||||
```js
|
||||
if (adf) {
|
||||
|
Reference in New Issue
Block a user