Category "angular"

Using Google One Tap in Angular

I'd like to use Google One Tap in my Angular 11 app. Following the documentation I added <script async defer src="https://accounts.google.com/gsi/client">

Nginx config to serve an Angular app under an URI prefix where files are generated in the same folder as "index.html"

There are a lot of Angular/Nginx examples on the web but I'm still unable to make my config work. I use Angular 13. In angular.json: outputPath is "www" baseHre

IIS: Angular request causes 401 unauthorized error when calling Python Flask on another port on same server

I have a legacy Angular application and there's a snippet of code below that makes a call to a ASP page on the same server and port getTableData.getUser = funct

mat tab inside tab selected index not working

When tab inside tab then if selected index of sub tab is 1 then it should show as selected. Let parent tab has two tabs, it has selectedIndex is 0, and sub tab

mat tab inside tab selected index not working

When tab inside tab then if selected index of sub tab is 1 then it should show as selected. Let parent tab has two tabs, it has selectedIndex is 0, and sub tab

How to detect change from one component into other

Angular 4. Github source I have a menu which is filled by a web service. The web service is in taskService, but is not necessary now. ngOnInit() { this.

Angular Material datepicker does not return value when action button is in use

The problem is that when clicking today-button, it is working, but when changing the date in datepicker, nothing happens and this seems to be because action but

ANGULAR | Use two components with same route

I need to use this route '/', but this route must use a component which is selected after auth validation. I want to do what Facebook does. When you are about t

How can I cast an AbstractControl to a FormControl in a template?

I have a FormGroup that I'm passing from a parent component to a child, and then within that FormGroup there's a control that I'm passing from the first child t

Make proxy configuration works with firebase hosting

I have an angular app with some proxy configuration. proxy.conf.js { "/my-api": { "target": "http://app.myapp.fr", "secure": false, "cha

Controlled input component in Angular 4

Is there any way how to control value of input only by on change handler in angular 4? I would like to achieve the same behaviour as with React's controlled co

ng-bootstrap - ngbtooltip not working with [(ngModel)]

I'm new to angular 4 and bootstrap beta 2 and trying to use ngbtooltip to show tool tip text. Tooltip on the label is working fine when only input does not have

NG0200: Circular dependency in DI detected,Why and How to do?

I want inject ParentCompoent to ChildComponent, But have a error is: Error: NG0200: Circular dependency in DI detected for ParentComponent parent

Unexpected value 'DecoratorFactory' imported by the module 'DynamicTestModule'. Please add a @NgModule annotation

This is my spec file: import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; im

Angular routerLinkActive only updates after clicking somewhere on the screen

Using Angular 13 I have a side menu which I build like this <mat-nav-list> <a mat-list-item *ngFor="let page of pages" [routerLink]="page.link" route

How fix div which includes span tag for responsive?

I found a neon graphics format and I want to use it. It looks exactly what I want, but not responsive .When it goes into phone mode, the text goes out of the p

Keep prefix even if dropSpecialCharacters is true with ngx-mask

<input matInput prefix="+55" mask=" (00) 00000-0000" [dropSpecialCharacters]="true" type="text" formControlName="phone" name="phone"> With this code I'm

Get the value from the mat-input in angular material

As im new to the angular. I just want to get the value from the mat-input I need to get the value from the angular mat-input. Can someone help me to do this. Th

Check if email is verified in ionic and firebase [closed]

After a user login , I want to check if the email used by the user is verified. I used to do it like this. import * as firebase from 'firebase

How to get query parameters from URL in Angular 5?

I'm using angular 5.0.3, I would like to start my application with a bunch of query parameters like /app?param1=hallo&param2=123. Every tip given in How to