diff --git a/ng2-components/ng2-activiti-form/docs/stencils.md b/ng2-components/ng2-activiti-form/docs/stencils.md index fda713636b..82de8a1c92 100644 --- a/ng2-components/ng2-activiti-form/docs/stencils.md +++ b/ng2-components/ng2-activiti-form/docs/stencils.md @@ -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) {