Category "angular7"

Ionic 4 ion-input allow number only, restrict alphabet and special character

I am creating an app in ionic4, I have a functionality where user can enter the only integer number (0-9), so I want to restrict any other character i.e alphabe

Why does Angular httpClient returns an Observable instead of a Promise? [closed]

I made a spring reactive backend which returns Flux<> object. When I call the service with angular httpClient and subscribe to the obser

NullInjectorError: No provider for InjectionToken angularfire2.app.options

I'm trying to insert the form data in cloud Firestore database. Below is my x.component.ts file in which I'm getting error at constructor where I'm writing priv

Uncaught (in promise): Error: Invalid CanActivate guard

Im newbee for angular 7 and now trying to implement CanActive, but im getting error : Can anyone guide me to overcome this. My code samples are as follows : a

Access to XMLHttpRequest has been blocked by CORS policy

I've a problem when I try to do PATCH request in an angular 7 web application. In my backend I have: app.use((req, res, next) => { res.set({ "A

has been blocked by CORS policy: Response to preflight request doesn't pass

I have created one app using angular and springboot for basic authentication with spring security but i am getting 401 error ..i am novice in springboot @Confi

vscode auto import, suggestion problem in Angular 7

vscode auto import and suggestion worked just fine with angular 6. but ever since I had upgraded to Angular 7 it didn't work. It seems to me that vscode can't i

How to get nativeElement from @ViewChild in Ionic 4/Angular7?

I am using Ionic 4's ion-search like so: <ion-searchbar #searchbarElem (ionInput)="getItems($event)" (tap)="handleT

Conditionally applying css to mat form field

I am working on an angular application and I am using mat form fields in it. For changing color of botttom border of mat form field I am using mat-form-field-ri

Disable PrimeNG Calendar month selection in Typescript

I am using PrimeNg Calendar in my angular 7 project, wanted to disable month navigator on some conditions at the component level. Ex: Current Month is February

ngx-Bootstrap 4 dropdown and navbar not working with Angular 7

I am trying to add Bootstrap 4 to Angular 7, I see the styles are overridden by bootstrap styles, but navigation bar and dropdown box is not working. I followe

Angular 7 error RangeError: Maximum call stack size exceeded

I am trying to learn angular by following the official tutorial but when following steps for hero component and hero detail component, it raises an error "Range

How to use Angular 7 cdkDropList between components?

I have a list of items (students) in a mat-list component on the left side of my screen (general list). I also have a list of class-room Components on the right

Input binding not working on custom made angular library

I've built an Angular library that I can import into outside applications. Withing my library exists a component called 'MainComponent' that has a single @Input

How to disabled Ctrl+P and Ctrl+S? in ng2-pdfjs-viewer. Right now anyone can print or download using keys.Any suggestion would be appreciated would

I am using ng2-pdfjs-viewer library to display pdf in my angular 7 app. Problem is if print flag is false button to print is not visible that works as expected

Selecting options from Mat-select using cypress

I have Mat-select dropdown as follows <mat-form-field> <mat-label>Gender</mat-label> <mat-select id="gender" required formContro