From 98f3cc25f839b4d6e5907ea03cea7ddc1d4fdfdb Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 24 Nov 2016 12:39:47 +0000 Subject: [PATCH] Readme updates --- ng2-components/ng2-activiti-form/docs/stencils.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) {