About 12,900,000 results
Open links in new tab
  1. Angular 19 - Component AppComponent is standalone, and …

    Nov 18, 2024 · On my Angular v19 app I get the following error: Component AppComponent is standalone, and cannot be declared in an NgModule or 'imports' is only valid on a component …

  2. Angular: conditional class with *ngClass - Stack Overflow

    Feb 8, 2016 · From the angular documentation: "The asterisk is "syntactic sugar" for something a bit more complicated. Internally, Angular translates the *ngIf attribute into a <ng-template> …

  3. angular - 'ng' is not recognized as an internal or external …

    Jul 19, 2017 · If angular cli is installed and ng command is not working then please see below suggestion, it may work In my case problem was with npm config file (.npmrc ) which is …

  4. How to declare a variable in a template in Angular

    131 You can declare variables in html code by using a template element in Angular 2 or ng-template in Angular 4+. Templates have a context object whose properties can be assigned to …

  5. Angular + Material - How to refresh a data source (mat-table)

    Oct 14, 2017 · There are two ways to do it, because Angular Material is inconsistent, and this is very poorly documented. Angular material table won't update when a new row will arrive.

  6. Angular - How to apply [ngStyle] conditions - Stack Overflow

    Mar 14, 2018 · Angular - How to apply [ngStyle] conditions Asked 7 years, 8 months ago Modified 1 year, 4 months ago Viewed 536k times

  7. Angular: error NG8001: 'component' is not a known element

    Jul 6, 2021 · If 'register' is an Angular component, then verify that it is part of this module. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

  8. angular - Difference between Constructor and ngOnInit - Stack …

    Mar 3, 2016 · Angular provides life cycle hook ngOnInit by default. Why should ngOnInit be used, if we already have a constructor?

  9. node.js - Angular - ng: command not found - Stack Overflow

    Oct 8, 2017 · I'm trying to learn Angular and my knowledge in terminal is beginner. After I installed Angular and then type ng new my-project. I get the response ng: command not found. I've …

  10. angular - How to use `trackBy` with `ngFor` - Stack Overflow

    Angular will then use this identifier to track changes and update only the necessary parts of the DOM when the list changes. Explained with a simple example code provided here Optimizing …