Category "angular"

RouterModule.forRoot called twice

I am trying to implement Lazy Loading into my application but seem to be coming across an issue whereby I get the error message : Error: RouterModule.forRoo

Call CDN delivered library in Angular Component

I am trying to interact with the HelpScout beacon via their API methods however struggling to interact with the DOM from the controller. I have tried running

Angular version upgrade 8 to 9

I am updating my angular project version from 8 to 9, after resolving other build errors when i run ng serve my compilation is getting stuck at 15% building 43/

How to handle image upload in angular 5 Tiny MCE component?

I am using TinyMCE editor in angular my angular 5 project, and want to handle image uploads, which I am currently not able to do. Here is my current code: <e

Screenshare in Agora Angular 8

I am trying to integrate Agora in Angular 8 application. Successfully, I am able to join and leave video call, now I am trying to integrate screen share which I

Angular test fails to run with ChromeHeadlessCI in Github Action

I bootstrap a simple Angular (v10.1) app and create Github action workflow as below. Note that I have configured test to run with recommended configurations as

Service: typeof is not assignable to type 'Provider[]'

I am getting error: tried using like: "useClass: ApidataService" or "ApidataService" in providers and also remove public from the service constructor. Failed t

Mime type error when adding a CSS file to Angular

I'm trying to build a static site using Angular. What I want is to have some global css/js/image files to be added to the index.html This is my code in index.h

How i format this @pipe currency with space in angular?

My pipe current print : {{ 200 | currency:'BRL':true }} = R$200.00 I need include space between R$ in 200.00 would stay correct {{ 200 | currency:'BRL':true

How to do inter communication between a master and detail component in Angular2?

There is a master-detail example on the angular2 site. I can't follow the pattern in my example below. In my example I have three components (1) customershome

Angular 2 service data can't assign to variable in constructor

In my Angular 2 application's constructor i need to assign service function returning data to a public variable and show in html view. Console log works well bu

Test angular component @Output using Storybook and Cypress

I am trying to test the output of an angular component. I have a checkbox component that output its value using an EventEmitter. The checkbox component is wrapp

Micro frontend architecture advice [closed]

We have several web applications that we wish to present under one single page application. We are looking for a micro-frontend architecture/f

Angular Material 2 table server-side pagination

I am trying to Achieve Angular Material 2, MatPaginator server side paging. How can I achieve that? Below is the code example: <div class="example-contai

NPM Install Error:Unexpected end of JSON input while parsing near '...nt-webpack-plugin":"0'

When creating a new Angular 5 project: node version: 8.9.2 npm version: 5.5.1 My Command is: npm install -g @angular/cli The Error is: npm ERR! **Unexpected en

How to Compress JSON data in angular 4 app using gzip compression & send it to server using Http post?

I am using pako library for compression: var binaryString = pako.gzip(data); At server side (.net core) i am using middleware to decomopress the zipped stri

Sorting not getting happened in angular material

I'm trying to add the sorting feature for the mat-table with angular material. I had got the hand cursor over my columns, When I clicked I'm unable to see it's

Why Interceptor not working with capacitor-community/http?

My problem is that my interceptors not working with library capacitor-community/http. I develop my app in Ionic and how can you see I provide interceptor in mod

How to disable a text area or mat-form-field

I am using Angular (4) + Angular Material and Reactive Forms for my Form Field. How can I disable that? I tried to google for things like disabled="true" or som

Cannot center the modal window from angular material

It is crazy but the following code: import { Component, Inject } from '@angular/core'; import { MatDialog, MatDialogRef, MatDialogConfig, MAT_DIALOG_DATA } from