Angular 7 CLI

Angular 7 CLI

The Angular framework is constantly evolving and improving fantastically. It has to do with the quick changes in front-end technology, cloud computing, browsers, demand for enterprise solutions, artificial intelligent, faster new Angular engine (IVY engine) and many more. 

The Angular 7 is faster than previous versions and upgrading is nicely done. Since new framework is faster than before, you can expect a much better performance.

The new Angular CLI is awesome and it responds with prompts. The new CLI prompts to choose between SCSS, CSS, SASS and more. It is very well customizable and just add the schematic.json and Angular CLI assist you as which prompts to choose from!

The new Angular provides a better the production build and removes the polyfill when there is not any reference to it. Also, a warning message is displayed when the app is more than 2 MB and of course screams errors when the app is getting bigger in MB! That means it is possible to modify the angular.json file and include the following

budget

Now another nice cool feature, browser compatibility. The Angular CLI ensures compatibility with various and different web bowsers. It is possible to include or exclude specific web browsers versions from the app build. This can be done with “Autoprefixer “. This tool adds the bowser’s list property to the package configuration file, which it is in package.json. The other choice is to add the “.browserslistrc” to the app’s project folder.

No alt text provided for this image
No alt text provided for this image

There are several more improvements in Angular and I like the proxy server setup in webpack too. This is done by passing a file to “–proxy-config” in the build option. It is very simple and diverting all http calls from http://IPaddress:3000/api to http://IPaddress:8080/api , placing the “proxy.conf.json” in the src/folder of project :

No alt text provided for this image

Now, add the “proxyConfig” option inside angular.json file in the server section:

No alt text provided for this image

This configuration takes effects by calling “ng serve”.

Angular CLI is powerful and makes front end development easier in various ways.  I suggest working with various compilations with ng build tool to see what works better in your development environment. 

More info on CLI

Nice! Did you know Angular CLI was based off of Ember CLI? #EmberJS #EmberJS2019

To view or add a comment, sign in

More articles by 🅽🅰🆂🅴🆁 ‘

  • A quick look at Widgets

    If you own an iPhone then installing iOS 14 opens the door for Widgets. This version now includes adding Widgets into…

  • Angular framework for your next enterprise project

    Some benefits of Angular framework for your next enterprise project 1- Using RxJS library, the reactive programming…

  • Little on Flux and Redux

    Five (5) minutes reading. I have been using JavaScript (JS) for many years in building applications.

  • Reactive Extensions for JavaScript

    I am sure you have heard of Reactive Extensions for JavaScript ( RxJS ) if you are familiar with Angular, EmberJS…

  • Generics basics

    Click here to play with codes Click her to play with interface codes If you use one of the programming languages like…

  • Parent listens for child event

    Angular @Output provides a way for a child component to emit events to its parent component with the help of…

  • Components interactions

    Angular components are the basic block codes for client web applications. They are the User Interface (UI) elements…

  • Working with CORS request header

    JavaScript web programming is growing fast and it is getting better over the years. However the Cross-Origin Resource…

    2 Comments
  • Angular and threeJS

    Note: The raw dragon COLLADA file is more than 8 MB and Github may not have the bandwidth to show it. Please try…

  • VR view with threejs JavaScript API

    Demo: VR view of Waneka lake Codes:github JavaScript is a powerful tool for developing and implementing web apps…

Others also viewed

Explore content categories