skip to Main Content

I am getting this error Property 'find' does not exist on type 'HttpEvent<any>'. while using find() to get my data – Javascript

Property 'find' does not exist on type 'HttpEvent'. logIn(signInForm: FormGroup) { console.log('Login', signInForm); this._http.get<any>('http://localhost:3000/signUpData', this.signInForm.value).subscribe(result => { if (this.id === undefined) { return } this._toast.success(this.signUpData, 'Registered Successfully!'); const userData = result.find((loginData: any) => { return loginData.email === this.signInForm.email && loginData.password…

VIEW QUESTION

Regex match with a list of special characters is not working for comma, semicolon etc in Angular – Javascript

I am using this pattern for password validation. Validators.pattern('((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!"#$%&`{|}~()*+,-.\:/;<=>?@[\]^_/']).{10,})'), But this validation is not working for ,;() etc but working for!@#$%^& These characters are need to be accepted- !"#$%&'()*+,-./:;<=>?@[]^_`{|}~ Can anybody suggest where the error is?

VIEW QUESTION

Angular child component console is not working – Javascript

I have created an angular application using angular 14. The folder structure looks like: >src >app |_> app-routing.module.ts |_>app.component.html |_>app.component.ts |_>app.module.ts >components >home |_>home.component.html |_>home.component.ts |_>home.module.ts >shared >components |_>shared.module.ts Here is the source code: -app.module: @NgModule({ declarations: [AppComponent], imports: […

VIEW QUESTION
Back To Top
Search