The Angular CLI is a command line interface for building, managing and deploying angular 2 applications.

learn more… | top users | synonyms

0
votes
0answers
5 views

Angular-CLI not creating all the default component

creating a new module using angular-cli it generate only the xx.module.ts How how to generate the rest of the default files like module1.component.ts module1.component.html module1....
0
votes
0answers
3 views

Does angular-cli uses rollup to do ahead-of-time compilation and adding all into one file?

I am wandering do angular-cli uses rollup to combine all the angular stuffs into one file by ahead-of-time compilation?
1
vote
1answer
40 views

ng new my-app unexpected token =

I have installed the angular2 cli via npm, but when I try to create a new typescript angular app with the command 'ng new my-app' I keep getting this error: C:\Users\nicholas\AppData\Roaming\npm\...
0
votes
0answers
13 views

Install node package on angular-cli application

I am trying to start an application with angular-cli, so what I do after the command ng_initis: npm install --save vaadin/angular2-polymer And here is the drama, when I import the module on my app....
0
votes
1answer
15 views

Can't import A-frame into component - Angular2

I have a project created with angular-cli where I have installed aframe via npm install aframe --save, and when I try to import it in the component via import 'aframe'; it causes the following error: ...
2
votes
1answer
17 views

Access Environment variables on compilation step in Angular CLI

Is there any way to access environment variable in angular 2 components when using ng serve? E.g.: API_URL=http://api.test.com ng serve How can I access API_URL in Angular components? Thanks in ...
0
votes
1answer
48 views

Getting error after Angular cli update

My anglar cli vesion was beta.16 I try to update by following command npm uninstall -g angular-cli @angular/cli npm cache clean npm install -g @angular/cli@latest after succesfully install when i ...
1
vote
0answers
16 views

Angular 2 with CLI using JIT for translation

I am trying to get the Angular 2 i18n translation running using jit. Unfortunately I get an Error saying, that the variable "System" is not defined. So I downloaded it from npm. I included it in ...
1
vote
1answer
17 views

Install bootstrap-material-design in angular 2 app using Angular-cli

I want to use bootstrap-material-design in my Angular 2 application that uses angular-cli. bootstrap-material-design (V4) uses SASS. And in order to make it work in Angular 2, I need to use sass-...
0
votes
1answer
22 views

Angular2 build only showing app works

I got an Angular 2 app which im ready to build and host on a webserver. I followed How to bundle an Angular 2 app for production to build my app. I have uploaded all the files in the dist folder to ...
1
vote
0answers
14 views

How to include git revision into angular-cli application?

I need to display git revision on my angular2 application's about page. The project is based on angular-cli. How can build be extended so git revision is put for example into environment.ts or other ...
1
vote
1answer
19 views

angular cli: application building fails on server environment

I got an angular application using the angular-cli (v1.0.0-beta.30). It gets deployed on a server where (next to checking out dependency repos and getting all the assets needed) it should get build. ...
0
votes
0answers
14 views

how to configure angular-cli.json

I have a project set up with the Angular 2 CLI SCSS like this: ng new myproject --style=scss In the project now I can use scss (files ending with *.scss). Acctually its really cool just out of the ...
0
votes
0answers
7 views

Missing peer dependencies after installing latest angular-cli: What to do?

After installing the latest angular-cli (@angular/[email protected])locally AND globally, I see these missing peer dependencies when I npm list -g --depth=1: UNMET PEER DEPENDENCY @angular/...
0
votes
1answer
22 views

Roll back AngularCLI version from 1.0.0-beta.30 to 1.0.0-beta.26 globally?

After running these: npm uninstall -g angular-cli @angular/cli npm cache clean npm install -g [email protected] Then, I tried this: ng --version This was my result: angular-cli: 1.0.0-...
0
votes
1answer
15 views

Google Chrome extension using Angular CLI stuck on “loading”

I try to develop a simple Google Chrome extension using angular CLI but it's stuck on Loading. If I try to run my app normally using npm start and open it in browser's window, it works fine. I also ...
1
vote
1answer
31 views

Cannot read property 'value' of undefined Angular CLI

first of all, I'm learning Angular with Angular CLI, Foundation and Jquery, so I'm still novice at this theme, it works in part, i can obtain the information from my database, apply the filter to show ...
-1
votes
0answers
17 views

Server side rendering with Angular cli

I just want to know if is possible to run Angular2 cli with server rendering similar to Angular2 universal? The problem is that the crawler can not read the sites with Angular2 cli and this is ...
0
votes
2answers
15 views

Angular 2 aot build - require issue

When building my application aot via angular-cli i.e. (ng build --aot --prod) I am receiving the following error: ..app>ng build --prod --aot 10% building modules 2/2 modules 0 active Error ...
0
votes
2answers
20 views

How can I change the path of component generation to current path in angular-cli?

I'm following an angular 2 course where the instructor navigates into the specific path where he wants to generate a component and then runs the following command: ng generate component component-...
1
vote
0answers
9 views

Using Packery with Angular 2

I can't seem to get Packery working with Angular 2 using angular-cli and typescript 2.0. I'm using Packery 1.4.1 and the typescript definitions for that version from DefinitelyTyped. The issue is ...
0
votes
2answers
161 views

algular-cli installation issue with rxjs

I'm tryin' to install angular-cli into my linux Mint 32bit computer. But There's a failure to install it. My command into terminal is: npm install -g angular-cli And the output: npm WARN deprecated ...
0
votes
1answer
18 views

Angular 2: Specify location of the test classes

I have Angular 2 project which is generated in Angular Cli tool. When I create component via: $ ng generate component my-component-bla the test class "my-component-bla.spec.ts" is generated as ...
1
vote
1answer
19 views

Material2: How to override the Roboto font in Material2's components

I would like to use Lato instead. I tried adding it in the index.html and styles.css but doesn't work.
0
votes
1answer
95 views

Angular 2 typescript: Cannot read property newLine of undefined

I am using angular-CLI for angular 2, for running I am doing ng serve in command prompt after ng serve getting module build failed 'Cannot read property newLine of undefined' error for all my angular ...
0
votes
0answers
11 views

angular-cli: how to include 3rd party .css files with references to external images

I am setting up my project and I have couple npm dependencies which consists of .css/.scss files and .svg sprite files. If I add path to style files which lives in my case under "node_modules" to ...
0
votes
0answers
20 views

Jinja2 and Angular2 template variables after Angular-cli build

Can you use Jinja2 template variables in an Angular2 app after the app has been built via Angular-Cli, and if so, how? I currently am passing the generated index.html file that is built through the ...
0
votes
0answers
9 views

override bootstrap variables angular-cli

I have an angular-cli project which I have added bootstrap-sass package. I have loaded the styles in angular-cli.json by adding this: "styles": [ "../node_modules/bootstrap-sass/assets/...
0
votes
2answers
27 views

Angular2 .filter is not a function

While following a tutorial to filter data using angular2 pipes, got below error EXCEPTION: Error in ./PmProductsComponent class PmProductsComponent - inline template:20:28 caused by: value.filter is ...
0
votes
2answers
25 views

How to compile, build, run ng2-bootstrap-development?

ng2-bootstrap-development doesn't compile for me. I see angular-cli in there, but when I run ng serve I get You have to be inside an angular-cli project in order to use the serve command. What am I ...
0
votes
0answers
37 views

What files you must import to your HTML in order to get your angular 2 app running? [on hold]

I'm sorry, but this is probably strange question but if I'm asking, than someone did a lousy job to explain it to me: Whenever you want to start fresh project with angular 2, you will be sent to the ...
2
votes
1answer
29 views

What are the .map files used for in angular-cli and can ng build not create these files?

ng build of angular-cli creates 3 files: inline.bundle.js vendor.bundle.js main.bundle.js and also a map file for each own. What for? I am also asking if there is a way to change that behavior, not ...
0
votes
1answer
27 views

Video is not rendered on mobile - aframe

I am building a project with aframe and angular-cli where I display a 360° video for virtual-reality. It works perfectly fine on desktop, but on mobile it doesn't render it and the console prints the ...
1
vote
0answers
26 views

Angular2 with two frontend admin and site

I am developing an app using angular-cli. The app has two frontend - site and admin. Both have different assets. Load only Admin assets when Admin is open. Load only Site assets when Site is open. ...
0
votes
0answers
21 views

Hot module reloading not working

Totally new to this thanks in advance, here is the console: error log I am trying to use hot module reloading with the angular-cli but I get that error in the console whenever I save a file.
2
votes
2answers
33 views

Sharing code between Angular applications

I have an existing Durandal app that are actual two apps tangled into each other. I want to rewrite the app(s) in Angular and want to distinct app's sharing common code. I have estimated that around ...
0
votes
1answer
18 views

How to use use JQVmap with Angular-CLI?

I've made an Angular-CLI project which works well. But I need to draw an interactive map with jQvmap (here). In my angular-cli.json file I include the path of jqvmap.js and jqvmap.css : { "project":...
0
votes
0answers
47 views

ng-cli doesn't add components to the app module

I’ve encountered a problem with a component generation using anglular-cli ng-cli doesn’t add the brand-new created component to the app module: $ ng g component Try installing component create src\...
0
votes
1answer
25 views

How to create submodule with Angular cli

I am creating an app in angular 2 with CLI , my app module is going too long so now i want to create submodules My submodule is import { NgModule } from '@angular/core'; import { Routes, ...
0
votes
0answers
19 views

How to include media (print|screen) on angular-cli.json

I want to configure materialize(css) on media=screen and bootstrap(css) on media=print, but I don't know doing it through angular-cli.json. Is this possible?
5
votes
1answer
670 views

“fallbackLoader option has been deprecated - replace with ”fallback“”

After upgrading my Angular CLI 1.0.0-beta.26 project to Angular CLI 1.0.0-beta.30, I get the following two warning: fallbackLoader option has been deprecated - replace with "fallback" loader option ...
1
vote
0answers
28 views

Overwriting styles from Bootstrap in an angular2 component-stylesheet

I have an angular2 application build with angular-cli containing several components. Each component has a referenced stylsheed (scss). Unique styles from those stylesheets are correctly applied to ...
0
votes
0answers
27 views

How to combine Angular-Cli frontend to Spring-boot backend

I currently have a web application that runs an Angular 2 frontend, and a Spring Boot backend. I have followed this tutorial in order to integrate the two components. http://blog.jdriven.com/2016/...
0
votes
1answer
37 views

Using tether with webpack (Angular CLI)

I'm developing a project using Angular CLI. So I installed tether using npm install tether --save, and imported the depedency in app.component.ts using import * as Tether from 'tether'. When I try to ...
0
votes
0answers
19 views

Angular2: strange routing issue where url doesn't get updated and route doesn't stay persistent when the page gets reloaded

I am working on a angular2 web app. I already have a few routes setup that all work as expected. I recently added a Goods Received view and i'm running into a very strange error... I added the path ...
0
votes
2answers
48 views

angular-cli changed to @angular/cli - anybody knows why?

I've been using angular-cli for a while now, and I've noticed the last few commits changed scripts referring to the name of the package. It seems that angular-cli team changed its package name from ...
0
votes
1answer
26 views

Angular CLI: How to use window, document or location in environment.ts

Does anyone knows how to use window, document or location in an environment.ts file? I'm getting an error when compiling ERROR in Error encountered resolving symbol values statically. Calling ...
0
votes
1answer
36 views

Angular2: Very strange behaviour, error complaining about a component that's not imported even though it is imported in app.module

I am busy with an Angular2 app and experiencing something very strange... I created a new component using angular-cli called GoodsReceivedComponent. when I import the component into my app.module.ts ...
-2
votes
0answers
33 views

How to use d3.tip.js with Angular2?

I am using d3 charts in my angular2 project. I followed this tutorial and got d3 charts running. https://medium.com/@jcasarrubias/how-to-build-a-chart-component-in-angular-2-and-d3-c0a15d845eca#....
0
votes
0answers
31 views

Mixins in Angular 2 CLI Sass

I installed Angular 2 CLI with the setup of SCSS. It now uses scss when generating components and I am give in a style.scss file in the root of my src directory... PERFECT, READY TO GO But, in my ...