Category "angular"

Error importing ngx-charts to Angular as separate component: error NG8001: 'ngx-charts-tree-map' is not a known element

I have imported ngx-charts in the way suggested in this link: https://stackblitz.com/edit/swimlane-tree-map-chart?embed=1&file=app/app.component.ts Howeve

How can i check all mat-checkbox in angular5?

I want when I click check-all; check-1, check-2 and check-3 are also checked. How can I do that? <form> <mat-checkbox type="checkbox" class="selec

How can I upload the data to my p-multiSelect?

I'm working with the primeNG component, but I can't load the data. MultiSelect this.listadoProductos = this.resolucionDatosCargados['listProduct']; this.par

How do I import svg from file to a component in angular 5?

All tutorials with adding svg to a component in AngularCli that I found recommend to insert it in html template, something like this: <div> <svg vi

NWjs - Building Angular 2 Desktop Apps

I am trying to build an Angular 2 Desktop App with NWjs. What is the entry point? Any examples of Building Angular 2 Desktop Apps with NW.js

Do I have to unsubscribe from ActivatedRoute (e.g. params) observables?

I find many examples where ActivatedRoute Observables like params or url are subscribed but not unsubscribed. constructor(private route: ActivatedRoute) {} ng

Angular 2: How to redirect route to child route with named outlet

I´m having a problem with Angular 2 router. I cannot get it to redirect to a specific child route with a named outlet. I think it´s a problem of URL

How to reload the current route with the angular 2 router

I am using angular 2 with hashlocation strategy. The component is loaded with that route: "departments/:id/employees" So far fine. After I do a successful batc

How to define Typescript Map of key value pair. where key is a number and value is an array of objects

In my angular2 app i want to create a map which takes a number as key and returns an array of objects. I am currently implementing in following way but no luck.

How to get current route custom data in angular 2?

I have set up routes is like below const appRoutes: Routes = [ { path: 'login', component: LoginComponent, data: { title: 'Login' } },

ngx-editor doesn't clear value

Nxg-editor (docs) can't clear its value on submit. I have a code like this in the form tag, but when I click on method using form.reset() it doesn't clear the v

angular 7 How to export ngx-datatable content to a excel sheet?

I have a pb with ngx-datatable and export excel. I try to use fileSaver, with angular 7. I implement a button for export and do this on it : var blob = new Bl

Angular - Difference between "optimization" and "buildOptimizer" in the build config (angular.json)

Can someone explain me exactly the difference between those two flags (optimization and buildOptimizer) defined in the build config angular.json during the buil

Two way data binding in model driven forms

I have a reactive form, in which, i have a first name, a last name and finally display name textbox. When i give first name and last name, the value of the disp

AngularFireList, property valueChanges() show the error Property 'query' is missing in type 'Observable<{}[]>

I'm having a hard time to figure out this error. Here is my code that I'm building in to make a AuthGuard service: user.service.ts: import { Injectable } from

Form validation error message show on submit in angular

I am trying to validate form in angular 6 but not working. My code is in stackblitz. How to validate that form and how to show error message? https://stackblitz

Disable 3rd state in Angular Material MatSortable

There are three states in sort direction of MatSortable. Is there a way to disable the 3rd state? It has 'asc' | 'desc' | '', id like to only have 'asc' | 'desc

what does the symbol '$' mean in angular?

What does mean by $ in ${some_var} search(term:string) { let promise = new Promise((resolve, reject) => { let apiURL = `${this.apiRoot}?term

How do I make the correct call from services using Angular?

Below, I have created a service of name util.service to call in manage-actives-crud.component.ts inside ngOnInit . Saying that everything that is different from

use of webcodecs API in Angular project?

I am trying to use features from the new webcodecs API in Chrome within an angular project. Typescript doesn't seem to be aware of the types, so I installed dom