Category "angular"

Return observable while doing task - Firebase Functions

I have a function in my Firebase Cloud Functions that needs to run a scraping task. While the function is scraping the public website I need to return to the co

Javascript Equivalent to C# LINQ GroupBy

This is a follow up question to the following question: Javascript Equivalent to C# LINQ Select We are using Angular 2 + TypeScript: I have an Array of objec

SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at XMLHttpRequest.onLoad

hope this is not a stupid question. connecting ionic and java springboot , there's no error message when the app is live serving in a browser and the data is

Prevent auto focus on tinymce in angular 2

Can anyone help me how to prevent auto focus in angular 2. I don't have idea how to do it in angular 2, but I am able to do it jquery: $('form *:input[type!=h

How do i pass heavy json data object on navigation in angular 12?

I am working on an Angular 12 project where I want to pass a heavy json data from one screen to another after navigation. Sample code is as below: Component 1 i

required attribute not working with primeng <p-dropdown>

I am working on a angular2 App and I am using primeng for UI elements. I have dropdowns where I am using the options in these dropdowns are dynamically generat

How to implement two html files for the same component in angular 9? One for mobile sized and one for desktop?

I would like to implement an application with multiple components and modules using Angular Material for desktop and Ionic for mobile. So far, the solution I fo

npm run server error '.' is not recognized as an internal or external command,

I ran into this problem with angular and npm and I'm yet to find a solution for it . The project I'm working is this angular project from github , this exact co

Firebase id token generation is broken

Context I am making an Angular web application using firebase messaging. I followed a tutoriel and the documentation to configure firebase successfully (I guess

Show Validation Message on submit in Angular 4 Reactive Forms

I am using Angular 4, Reactive forms.I want to show validation error message when the user clicks on Submit/Create Account button. Here is the HTML and typescr

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

How to forward/pass windows authentication from client to another REST API in an ASP.NET Core app with Angular?

I am currently implementing an ASP.NET Core app with Angular as described here. With the help I got in this question, I was already able to get the application

Guard not re-routing to other component

I have these two guards @Injectable({ providedIn: 'root' }) export class DesktopGuard implements CanActivate { constructor( private router: Router, p

How to fill select options from a directive?

Here is a simple select: <select [(ngModel)]="..." name="..." id="..." required ...> <option *ngFor="let o of options" [ngValue]="o.value">{{o.l

ngb Pagination [(page)] attribute in angular is not working

I am using ngb pagination in my angular project. I have a table that shows 5 records per page and in that table i have a column named view. After clicking on vi

How to wait for angular requests to complete for automation testing

I am facing issues while automating Spartacus angular application using selenium java. Selenium is not waiting for all angular requests to complete. As the requ

ngb Pagination [(page)] attribute in angular is not working

I am using ngb pagination in my angular project. I have a table that shows 5 records per page and in that table i have a column named view. After clicking on vi

I can't distinguish roles with my implementation in DRF+Angular

I've made an implementation of a login system using django as backend and angular as frontend. In the backend the authentication is implemented via the view ass

Scroll to element on click in Angular 4

I want to be able to scroll to a target when a button is pressed. I was thinking something like this. <button (click)="scroll(#target)">Button</button&

Changing from a default theme to a custom theme removes cursor from MatInput, Angular 6

I wanted to change from a default Angular Material color scheme to a custom one. My problem is, when I did, the MatInput field stopped showing the blinking curs