10 examples of 'ngafterviewinit example' in JavaScript

Every line of 'ngafterviewinit example' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
632ngAfterViewInit() {}
266ngAfterViewInit() {
267 /** Highlight.js init */
268 this.codeElements.forEach(element => hljs.highlightBlock(element.nativeElement));
269}
38ngAfterViewInit() {
39 setTimeout(() => {
40 if(this.json) {
41 if(this.json instanceof FormInput && this.json.values.length == 0) {
42 this.fGroup.controls[ 'idEntrata_ctrl' ].disable();
43 }
44 if(!(this.json instanceof FormInput)) {
45 this.fGroup.controls['idEntrata_ctrl'].disable();
46 this.fGroup.controls['idEntrata_ctrl'].setValue((this.json.idEntrata)?this.json.idEntrata:'');
47 this.fGroup.controls['descrizione_ctrl'].setValue((this.json.descrizione)?this.json.descrizione:'');
48 this.fGroup.controls['tipoContabilita_ctrl'].setValue((this.json.tipoContabilita)?this.json.tipoContabilita:'');
49 this.fGroup.controls['codiceContabilita_ctrl'].setValue((this.json.codiceContabilita)?this.json.codiceContabilita:'');
50 this.fGroup.controls['codificaIUV_ctrl'].setValue((this.json.codificaIUV)?this.json.codificaIUV:'');
51 }
52 }
53 });
54}
54ngAfterViewInit() {
55 combineLatest([this.hidableElement.isHidden, this.disable])
56 .pipe(takeUntil(this.onDestroy$))
57 .subscribe(([ isHidden, isDisabled ]) => {
58 if (isHidden) {
59 this.transition = `${ this.demoControls.value.hideTransitionTime }s ${ this.demoControls.value.hideTransition }`;
60 } else {
61 this.transition = `${ this.demoControls.value.showTransitionTime }s ${ this.demoControls.value.showTransition }`;
62 }
63
64 if (isHidden && isDisabled) {
65 this.hidableElement.show();
66 }
67 });
68}
176ngAfterViewInit() {
177 this.ngZone.runOutsideAngular(() => {
178 this.jQueryElement = jQuery(this.element.nativeElement);
179
180 this.jQueryElement.chart(this.options);
181 this.column = this.jQueryElement.data('column');
182
183 // Setup the events
184 this.jQueryElement.on('selected', (e: any, args: SohoColumnSelectEvent) =>
185 this.ngZone.run(() => this.selected.emit(args)));
186 this.jQueryElement.on('unselected', (e: any, args: SohoColumnSelectEvent) =>
187 this.ngZone.run(() => this.unselected.emit(args)));
188 this.jQueryElement.on('rendered', (...args) =>
189 this.ngZone.run(() => this.rendered.emit(args)));
190 this.jQueryElement.on('contextmenu', (...args) =>
191 this.ngZone.run(() => this.contextmenu.emit(args)));
192 });
193}
38beforeViewRender(
39 event:
40 | CalendarMonthViewBeforeRenderEvent
41 | CalendarWeekViewBeforeRenderEvent
42 | CalendarDayViewBeforeRenderEvent
43) {
44 this.period = event.period;
45 this.cdr.detectChanges();
46}
39ngAfterViewInit() {
40 (this.tooltip as any).appRef.components.push({
41 _component: this
42 });
43}
37ngAfterViewInit() {
38 this.calculateSerializedPanes();
39 this.panes.changes.subscribe((r) => { this.calculateSerializedPanes(); });
40}
594ngAfterViewInit() {
595 if(this.globalFilter) {
596 this.globalFilterFunction = this.renderer.listen(this.globalFilter, 'keyup', () => {
597 this.filterTimeout = setTimeout(() => {
598 this._filter();
599 this.filterTimeout = null;
600 }, this.filterDelay);
601 });
602 }
603
604 if(this.scrollable) {
605 this.initScrolling();
606 }
607}
117ngAfterViewInit() {
118 this.subscription = this.router.events.subscribe((event: Event) => {
119 if (event instanceof NavigationEnd) {
120 this.currentPath = event.urlAfterRedirects.split(';')[0];
121 this.openTabsByPath(this.currentPath);
122 }
123 });
124}

Related snippets