Category "angular"

How to add custom google maps styling xml in agm-map

I am trying to customize the google maps with the help of https://mapstyle.withgoogle.com/, custom google maps styling. I am using angular google maps(https://

event.preventDefault() or event.stopPropagation() not working with keyUp event

Directive file: I am trying to do that if my counter goes above two it should stop event or keyUp to reflect but is it not working. Can someone help me on this?

How do I prevent HTML2PDF from auto-downloading the pdf?

I have a HTML2PDF method in my JavaScript code. The code is working great on one hand as I can open the rendered pdf in a new blob tab and open the print window

Power BI embedded report in Angular 7 code is not exported with visual filters applied

We have embedded Power BI report in Angular 7 code and when we try to export using Power BI provided service it is not exporting applied filters instead it down

How to add pagination in angular material table that bind to API response

I'm new to angular. In my project shown list of products and its work correctly. My HTML code is below : <table mat-table [dataSource]="list_product" style="

Angular Material: How close overlay's backdrop also on right click?

How close the overlay's backdrop (opened by MatMenu or MatDialog) also on right click globally (without matMenu/matDialog reference)?

<iframe> downloads pdf file instead of displaying

This is my component.html <iframe [src]="frameSrc | safe" class="frameSet" type="application/pdf" frameborder="0" webkitallowfullscreen mozallowfu

How to test form controls avoiding bracket notation to preserve type checking and maintainability

The Problem My unit tests on a form break when I refactor an object's member because I can only access the formcontrols on a fromgroup by using bracket notation

angular 5 nav-menu path query

I am trying to get the Angular path query in the nav menu. Whenever I try this.route.paramMap.subscribe(params => this.Name = params.get('name'

npm ERR! A complete log of this run can be found in:

When I'm going to create new angular project using . This error occurred. Could you guys please, tell me how to solve this issue. e$ ng new angular-the-basics

Show active Tab in angular

I am trying to show the active tab in an Angular app. The trouble is that the tab is located in a sub header where as the component which dictates which tab is

Angular application throwing "inline style..." error due to CSP response header configured on server

I am working on an angular application.I am working in angular 8 application with CLI.My application is running on local server without any failure. On deployi

How to change the styling of nested child element inside a shadow DOM using angular

I want to change the font style of a child element which is wrapped inside a parent element which is internally wrapped by others and finally it is enclosed ins

Angular [disabled]="MyBoolean" not working

I have some inputs (Checkboxes) and I want them to be disabled if my Booleans are true. But its not working... The funny thing is the submit button works just f

Angular: How to store FileReader content in a variable or an array

I'm so confused about this but is there a way to store FileReader content into a variable or an array as it is, because I need that content into another compone

Disable next and previous cell in AgGrid

I have an AgGrid with ColDefs listed below and 3 columns I want to click on the middle cell and disable the first and last cell so that they cannot be clicked a

How to encapsulate Angular app's global CSS within exported web component?

Goal I have an Angular 11 site with a large form component using Angular Material -- let's call it myExportableComponent. I want to use myExportableComponent i

How to remove Angular Universal on angular project

I enabled angular universal on my project . I would like to remove it completely now. I tried to remove the following files /server.ts /webpack.server.config.

An Observable for the Current Activated Route?

For various purposes, it may be advantageous to attach a listener to the Router which is called every time the route changes. This could be used to trigger an A

error TS2322: Type 'Event' is not assignable to type 'string'. [(ngModel)]="todoItem" (keyup) ="addTodo()"

I'm trying to bind my input to be able to display string. But I've this error: Error: list.component.html:3:15 - error TS2322: Type 'Event' is not assignable to