Skip to content
Advertisement

Tag: angular

Can’t reinizialize ngrx’s state’s feature

I’m working with ngrx and this is my initialState: i need reinitialize the state feature. This is my reducer’s case: I’m expecting that this reducer, clean my feature state, returning it equal to the initialState. But the state dosen’t change. If i log the initialState, it is equal to the actual state The only way I can reset it is

How to implement sign in with Google in Angular?

I need to implement a sign in with google feature on a website. The problem is that I can’t find a library for Angular (11), for example React has one. Even if there isn’t a library for angular, I can’t find one for typescript, any solutions? Answer you can use OAuth to handle login with google, the following article goes

IBAN mask with label

I m trying to mask an input field for IBAN entry. I tried to use RobinHerbots/Inputmask in my angular project but couldnt really manage to get exactly what i need. Somehow library is transforming the “IBAN” to “IB_N”. Any ideas how could i use the letter “A” ? (screenshots) what i get what i tried https://stackblitz.com/edit/angular-ph3dmv?embed=1&file=src/app/app.component.ts Answer Seem to have

How to traverse a typed array?

I have the following class model in my application Angular: And my Controller: In the template I have a multiple select where I fill an array with the id’s of the chosen categories. Problem, I’m using ngModel to link the form with the controler, but to send the pre-filled data to the API, I have to format the id’s to

Advertisement