Questions tagged [angular2-cli]

124 questions
1
vote
1 answer

It is possible to delete components (pipe - ect) from Angular CLI

For example if I use the following: ng g c my-new-component: add a component in application He creates the files, the routes and all the history, Angular CLI is very cool. But if at some point I want to delete a component, I have to delete…
Angel Angel
  • 19,670
  • 29
  • 79
  • 105
1
vote
1 answer

Error occured while trying to proxy Angular2 CLI, Node.js, Socket.io

I am getting error after I stop my application. How can I fix this issue? For production I am using port 3000 and for development 4200. [HPM] Error occurred while trying to proxy request …
Tony
  • 223
  • 8
  • 20
1
vote
2 answers

Angular CLI enum creation error

When trying to create a enum with the Angular CLI, I get the following error: C:\angular\myapp\src\app\enums>ng generate enum myEnum installing enum Cannot read property '0' of undefined TypeError: Cannot read property '0' of undefined at…
Wayne Barnard
  • 164
  • 1
  • 8
1
vote
1 answer

Livereload(rebuild) Angular2 on Flask App

I am new in frontend, so I have some problems with flask and angular 2 integrating. I have to create site for visualization some data, user can upload file with data, then python scripts will process them and draw some charts. I have created new…
LinearLeopard
  • 728
  • 1
  • 6
  • 18
1
vote
1 answer

angular2 cli with material lite stepper not working

I am trying to add material lite stepper to my angular2 project. I did npm install mdl-stepper --save and then in my index file added:
Thinker
  • 5,326
  • 13
  • 61
  • 137
1
vote
0 answers

Compiler of @angular/compiler-cli?

What is type of compiler for @angular/compiler-cli? tsc compiler or ngc
Abinaya
  • 364
  • 2
  • 6
  • 16
1
vote
1 answer

Handle Routes with QueryParam in Angular2

I have two routes in my appilcation {path: 'activity/?cInfo=askjdfkajsdfkasd', component: PostComponent}, {path: 'activity/:id', component: PostDetailComponent} What i have to do to make them work? Route with querystring ?cInfo=askjdfkajsdfkasd…
Dinkar Thakur
  • 3,025
  • 5
  • 23
  • 35
1
vote
1 answer

ctorParameters.map is not a function error

I just install angular2cli from bitbucket. After npm install, ng build and ng serve, and go to localhost:4200 I get this error Uncaught TypeError: ctorParameters.map is not a function at ReflectionCapabilities.parameters…
Alan
  • 69
  • 1
  • 1
  • 6
1
vote
2 answers

After ng build in Angular 2 Cli application build the refresh shows 404 Error

I have successfully create and run an angualr2-cli application. I also deploy the application on the apache server, For this I am using the help of angular2-cli command ng build But My application goes down ( 404 Page Not Found Error) while…
nifCody
  • 2,394
  • 3
  • 34
  • 54
1
vote
1 answer

node_modules in AngularJS 2 [ng cli] without System.config

How do I include node_modules without System.config with AngularJS 2 projects generated with ng? Attempts (in src/index.html):
A T
  • 13,008
  • 21
  • 97
  • 158
1
vote
0 answers

global d3 modules with angular2 cli shows compile error

I tried importing d3 in my files and of course this worked, but I also wanted to use d3-tip and this turned out to be difficult to import in the normal way so I looked at the angular2-cli docs and tried importing the files globally in the…
Jope
  • 146
  • 8
1
vote
0 answers

Angular-cli , Karma, "you may need an appropriate loader ___Karma___: ANY

I am having an issue using the angular-cli with Karma for unit testing an angular 2 application, I was able to get protractor working fine for e2e testing. I run ng test and here is what I get angular2 karma error I am running ng test within an…
Rami
  • 490
  • 7
  • 22
1
vote
1 answer

Angular 2 internalization (ng-xi18n tool) without code compilation

I create i18n files using ng-xi18n tool. When I execute "./node_modules/.bin/ng-xi18n" messages.xlf file is created. The problem is that all code is compiled. js, js.map, metadata.json files are created, I don't need them. Hoe to create messages.xlf…
Ildar
  • 3,808
  • 7
  • 45
  • 81
1
vote
3 answers

debugging into angular 2 typescript source code

I have an angular2 project generated by angular-cli. I want to be able to debug the angular2 typescript source code in chrome dev tools (not my own typescript code but the actual angular2 code). The angular2 npm package under node_modules only…
sk20b21
  • 51
  • 3
1
vote
1 answer

Model driven forms - Validators issue

I am testing a simple app. These are my files: home.component.ts import { Component } from '@angular/core'; import { FormGroup, FormControl, Validators, FormBuilder } from '@angular/forms'; @Component({ selector: 'app-home', templateUrl:…
1 2 3
8 9