All Questions

247
votes
11answers
105783 views

How to bundle an Angular app for production

I would like to track and update in this thread the latest best (and hopefully the simplest) method to bundle Angular (version 2, 4, ...) for production on a live web server. Please include the Angul...
175
votes
7answers
98344 views

Angular CLI SASS options

I'm new to Angular and I'm coming from the Ember community. Trying to use the new Angular-CLI based off of Ember-CLI. I need to know the best way to handle SASS in a new Angular project. I tried usi...
53
votes
6answers
45873 views

Angular Cli Webpack, How to add or bundle external js files?

I am not sure how to include JS files (vendors) after switching Angular Cli from SystemJs to Webpack. For example Option A I have some js files that were installed via npm. Adding script tags to th...
13
votes
6answers
10717 views

ctorParameters.map is not a function in angular2-mdl

I'm trying to use angular2-mdl with angular-cli. I imported MdlModule in app.module.ts. When I try to use <mdl-textfield type="text" label="Text..." floating-label></mdl-textfield>, it ma...
5
votes
3answers
406 views

jQuery is not defined in bootstrap-sass

I bootstrapped the Angular 2 app using angular-cli. Everything was easy-peasy until I decided to use bootstrap modal. I simply copied the code for opening the modal from our other project that doesn't...
30
votes
8answers
39043 views

angular-cli server - how to proxy API requests to another server?

With the angular-cli ng serve local dev server, it's serving all the static files from my project directory. How can I proxy my AJAX calls to a different server?
127
votes
18answers
149709 views

How to add bootstrap to an angular-cli project

We want to use bootstrap 4 (4.0.0-alpha.2) in our app generated with angular-cli 1.0.0-beta.5 (w/ node v6.1.0). After getting bootstrap and its dependencies with npm, our first approach consisted in ...
20
votes
6answers
1523 views

Error installing Angular using npm due to require-from-string

How to resolve this error as I am not able to install Angular. Please see the below exception: C:\Users\absin\node>npm install -g @angular/cli npm ERR! code ETARGET npm ERR! notarget No matching ...
123
votes
13answers
62075 views

How to add font-awesome to Angular 2 + CLI project

I'm using Angular 2+ and Angular CLI. How do I add font-awesome to my project?
23
votes
3answers
8711 views

How to undo Angular 2 Cli ng-eject?

I have just executed the ng eject command. But now I need to revert it, and continue to use ng commands. Is it possible? I would be grateful for any help.

Previous Next