Top "Angular" questions

Questions about Angular (not to be confused with AngularJS), the web framework from Google.

Define global constants

In Angular 1.x you can define constants like this: angular.module('mainApp.config', []) .constant('API_ENDPOINT', 'http://127.0.0.1:6666/api/') What …

typescript angular
Error: More than one module matches. Use skip-import option to skip importing the component into the closest module

When I try to create a component in the angular cli, it's showing me this error. How do I get …

angular
Typescript sleep

I'm developing a website in Angular 2 using Typescript and I was wondering if there was a way to implement thread.…

angular typescript
How to Refresh a Component in Angular

I am working on an Angular project. I'm struggling with refresh action in a component. I would like to refresh …

angular routes components refresh
"Port 4200 is already in use" when running the ng serve command

I am learning angular 2 and for the first time I am using the angular CLI project to create a sandbox …

angular
How can I declare a global variable in Angular 2 / Typescript?

I would like some variables to be accessible everywhere in an Angular 2 in the Typescript language. How should I go …

typescript angular
Angular 2 Hover event

In the new Angular2 framework, does anyone know the proper way to do a hover like an event? In Angular1 …

javascript angular events hover
How to disable a input in angular2

In ts is_edit = true to disable... <input [disabled]="is_edit=='false' ? true : null" id="name" type="text" [(ngModel)]="…

angular angular-reactive-forms disabled-input
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 …

node.js angular npm npm-install
Angular 2 two way binding using ngModel is not working

Can't bind to 'ngModel' since it isn't a know property of the 'input' element and there are no matching directives …

data-binding typescript angular 2-way-object-databinding