mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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
|
```ts
|
||||||
import { OnInit } from '@angular/core';
|
import { OnInit } from '@angular/core';
|
||||||
|
|
||||||
class Component1 implements OnInit {
|
class SampleClass1 implements OnInit {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
console.log('ctor called');
|
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
|
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
|
```js
|
||||||
if (adf) {
|
if (adf) {
|
||||||
|
Reference in New Issue
Block a user