@@ -65,7 +65,7 @@ <h3>File</h3>
65
65
< h3 > Implements</ h3 >
66
66
</ p >
67
67
< p class ="comment ">
68
- < code > < a href ="https://angular.io/api/core/OnInit " target ="_blank " > OnInit </ a > </ code >
68
+ < code > < a href ="https://angular.io/api/core/AfterViewInit " target ="_blank " > AfterViewInit </ a > </ code >
69
69
</ p >
70
70
71
71
@@ -93,9 +93,9 @@ <h3>Metadata</h3>
93
93
94
94
< tr >
95
95
< td class ="col-md-3 "> template</ td >
96
- < td class ="col-md-9 "> < pre class ="line-numbers "> < code class ="language-html "> <p >
97
- angular-service-bot works!
98
- </p >
96
+ < td class ="col-md-9 "> < pre class ="line-numbers "> < code class ="language-html "> <div >
97
+ <div id="servicebot-subscription-portal"></div>
98
+ </div >
99
99
</ code > </ pre > </ td >
100
100
</ tr >
101
101
@@ -125,12 +125,27 @@ <h6><b>Methods</b></h6>
125
125
< td class ="col-md-4 ">
126
126
< ul class ="index-list ">
127
127
< li >
128
- < a href ="#ngOnInit "> ngOnInit</ a >
128
+ < span class ="modifier "> Public</ span >
129
+ < a href ="#ngAfterViewInit "> ngAfterViewInit</ a >
129
130
</ li >
130
131
</ ul >
131
132
</ td >
132
133
</ tr >
133
134
135
+ < tr >
136
+ < td class ="col-md-4 ">
137
+ < h6 > < b > Inputs</ b > </ h6 >
138
+ </ td >
139
+ </ tr >
140
+ < tr >
141
+ < td class ="col-md-4 ">
142
+ < ul class ="index-list ">
143
+ < li >
144
+ < a href ="#serviceBotParams "> serviceBotParams</ a >
145
+ </ li >
146
+ </ ul >
147
+ </ td >
148
+ </ tr >
134
149
135
150
136
151
@@ -145,20 +160,73 @@ <h3 id="constructor">Constructor</h3>
145
160
< tbody >
146
161
< tr >
147
162
< td class ="col-md-4 ">
148
- < code > constructor()</ code >
163
+ < code > constructor(bot: < a href =" ../injectables/AngularServiceBotService.html " > AngularServiceBotService </ a > )</ code >
149
164
</ td >
150
165
</ tr >
151
166
< tr >
152
167
< td class ="col-md-4 ">
153
- < div class ="io-line "> Defined in < a href ="" data-line ="13 " class ="link-to-prism "> projects/angular-service-bot/src/lib/angular-service-bot.component.ts:13 </ a > </ div >
168
+ < div class ="io-line "> Defined in < a href ="" data-line ="15 " class ="link-to-prism "> projects/angular-service-bot/src/lib/angular-service-bot.component.ts:15 </ a > </ div >
154
169
</ td >
155
170
</ tr >
156
171
172
+ < tr >
173
+ < td class ="col-md-4 ">
174
+ < div >
175
+ < b > Parameters :</ b >
176
+ < table class ="params ">
177
+ < thead >
178
+ < tr >
179
+ < td > Name</ td >
180
+ < td > Type</ td >
181
+ < td > Optional</ td >
182
+ </ tr >
183
+ </ thead >
184
+ < tbody >
185
+ < tr >
186
+ < td > bot</ td >
187
+
188
+ < td >
189
+ < code > < a href ="../injectables/AngularServiceBotService.html " target ="_self " > AngularServiceBotService</ a > </ code >
190
+ </ td >
191
+
192
+ < td >
193
+ No
194
+ </ td >
195
+
196
+ </ tr >
197
+ </ tbody >
198
+ </ table >
199
+ </ div >
200
+ </ td >
201
+ </ tr >
157
202
</ tbody >
158
203
</ table >
159
204
</ section >
160
205
206
+ < section >
207
+ < h3 id ="inputs "> Inputs</ h3 >
208
+ < table class ="table table-sm table-bordered ">
209
+ < tbody >
210
+ < tr >
211
+ < td class ="col-md-4 ">
212
+ < a name ="serviceBotParams "> </ a >
213
+ < b > serviceBotParams</ b >
214
+ </ td >
215
+ </ tr >
216
+ < tr >
217
+ < td class ="col-md-4 ">
218
+ < i > Type : </ i > < code > < a href ="../interfaces/ServiceBotParams.html " target ="_self " > ServiceBotParams</ a > </ code >
161
219
220
+ </ td >
221
+ </ tr >
222
+ < tr >
223
+ < td class ="col-md-2 " colspan ="2 ">
224
+ < div class ="io-line "> Defined in < a href ="" data-line ="15 " class ="link-to-prism "> projects/angular-service-bot/src/lib/angular-service-bot.component.ts:15</ a > </ div >
225
+ </ td >
226
+ </ tr >
227
+ </ tbody >
228
+ </ table >
229
+ </ section >
162
230
163
231
164
232
@@ -171,26 +239,28 @@ <h3 id="methods">
171
239
< tbody >
172
240
< tr >
173
241
< td class ="col-md-4 ">
174
- < a name ="ngOnInit "> </ a >
242
+ < a name ="ngAfterViewInit "> </ a >
175
243
< span class ="name ">
176
244
< b >
177
- ngOnInit
245
+ < span class ="modifier "> Public</ span >
246
+ ngAfterViewInit
178
247
</ b >
179
- < a href ="#ngOnInit "> < span class ="icon ion-ios-link "> </ span > </ a >
248
+ < a href ="#ngAfterViewInit "> < span class ="icon ion-ios-link "> </ span > </ a >
180
249
</ span >
181
250
</ td >
182
251
</ tr >
183
252
< tr >
184
253
< td class ="col-md-4 ">
185
- < code > ngOnInit()</ code >
254
+ < span class ="modifier-icon icon ion-ios-reset "> </ span >
255
+ < code > ngAfterViewInit()</ code >
186
256
</ td >
187
257
</ tr >
188
258
189
259
190
260
< tr >
191
261
< td class ="col-md-4 ">
192
- < div class ="io-line "> Defined in < a href ="" data-line ="17 "
193
- class ="link-to-prism "> projects/angular-service-bot/src/lib/angular-service-bot.component.ts:17 </ a > </ div >
262
+ < div class ="io-line "> Defined in < a href ="" data-line ="21 "
263
+ class ="link-to-prism "> projects/angular-service-bot/src/lib/angular-service-bot.component.ts:21 </ a > </ div >
194
264
</ td >
195
265
</ tr >
196
266
@@ -212,23 +282,28 @@ <h3 id="methods">
212
282
213
283
214
284
< div class ="tab-pane fade tab-source-code " id ="c-source ">
215
- < pre class ="line-numbers compodoc-sourcecode "> < code class ="language-typescript "> import { Component, OnInit } from '@angular/core';
285
+ < pre class ="line-numbers compodoc-sourcecode "> < code class ="language-typescript "> import { AfterViewInit, Component, Input } from '@angular/core';
286
+ import { AngularServiceBotService } from './angular-service-bot.service';
287
+ import { ServiceBotParams } from './interface/service-bot-params';
216
288
217
289
@Component({
218
290
selector: 'lib-angular-service-bot',
219
291
template: `
220
- <p >
221
- angular-service-bot works!
222
- </p >
292
+ <div >
293
+ <div id="servicebot-subscription-portal"></div>
294
+ </div >
223
295
`,
224
- styles: [
225
- ],
226
296
})
227
- export class AngularServiceBotComponent implements OnInit {
297
+ export class AngularServiceBotComponent implements AfterViewInit {
298
+
299
+ @Input() public serviceBotParams: ServiceBotParams;
228
300
229
- constructor() { }
301
+ constructor(
302
+ private bot: AngularServiceBotService,
303
+ ) { }
230
304
231
- ngOnInit(): void {
305
+ public ngAfterViewInit() {
306
+ this.bot.initServiceBot(this.serviceBotParams);
232
307
}
233
308
234
309
}
@@ -262,7 +337,7 @@ <h3 id="methods">
262
337
< script src ="../js/libs/htmlparser.js "> </ script >
263
338
< script src ="../js/libs/deep-iterator.js "> </ script >
264
339
< script >
265
- var COMPONENT_TEMPLATE = '<div><p > angular-service-bot works!</p ></div>'
340
+ var COMPONENT_TEMPLATE = '<div><div > <div id="servicebot-subscription-portal"></div></div ></div>'
266
341
var COMPONENTS = [ { 'name' : 'AngularServiceBotComponent' , 'selector' : 'lib-angular-service-bot' } ] ;
267
342
var DIRECTIVES = [ ] ;
268
343
var ACTUAL_COMPONENT = { 'name' : 'AngularServiceBotComponent' } ;
0 commit comments