Open in app

Sign In

Write

Sign In

Ajay Kumar Maheshwari - [Frontend Developer]
Ajay Kumar Maheshwari - [Frontend Developer]

1 Follower

Home

About

Apr 9, 2021

@viewChild Angular

Property decorator that configures a view query View queries are set before the ngAfterViewInit callback is called. import { Component, OnInit,AfterViewInit, viewChild } from '@angular/core'; @Component({ selector: 'app-example', templateUrl: './example.component.html', styleUrls: ['./example.component.css'] }) export class ExampleComponent implements OnInit, AfterViewInit { constructor() { } @ViewChild('addBtn') addBtn:ElementRef; ngOnInit(): void { } ngAfterViewInit() { // child is set console.log(this.addBtn.nativeElement) } } <button #addBtn>add</button>

1 min read

1 min read


Sep 13, 2020

Rxjs:- Interval,Timer

We are creating a “Interval” Rxjs Operator for the time specify 1 second that return the value 1,2,3,4… etc, This is call as simply as a method Interval:- const interval$ = interval(1000); interval.subscribe((val)=> { console.log(“interval val: ” val) }) // return 1,2,3,4,5…… Timer:- takes two arguments 1- First take initial delay before start 2-Second time interval const timer$ = timer(3000,1000) timer.subscribe((val)=> { console.log(“timer ” val) })

Rxjs

1 min read

Rxjs:- Interval,Timer
Rxjs:- Interval,Timer
Rxjs

1 min read

Ajay Kumar Maheshwari - [Frontend Developer]

Ajay Kumar Maheshwari - [Frontend Developer]

1 Follower

Currently working as UI Frontend Developer I have worked on multiple domains such as E-learning, E-commerce HTML5, CSS3, JavaScript, SASS, Responsive,Angular

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams