10 Things you did not know about Angular.js


angular shield

Angular is an open source javascript framework written and maintained by the angular team at Google;

1) Every version of Angular greater than 2 is just called Angular.

2) With Angular’s latest version, you need to have Node.js and NPM installed to RUN it

3) Angular (like React), recently introduced Service Workers. A Service Worker is a script that runs in the web browser and manages the caching for web applications. This script runs separately and in the background and doesn’t need any user interactions. (A programmable network proxy that intercepts all outgoing HTTP requests that allows you to control how network requests from your page are handled). They improve the performance as it provides a remedy for unreliable network connections. They Minimize the risks of serving outdated content; And thus they optimize the end user experience

4) Although TypeScript is the official language you can expect to see with Angular, you can still use JavaScript and Dart, although they are not officially supported by Google. There are however other support groups online if you want to look into this.

5) The bootstrapping process create components listed in the bootstrap array and inserts each one into the browser.

6) In versions > 4, simply you can retry an HTTP/network request using an RxJS operator. This means you are automatically pre-subscribed to an Observable, thus reissuing the request when an error occurred (e.g. .retry()).

7) Angular Router is an optional service that presents a particular component view for a given URL e.g. import { RouterModule, Routes } from ‘@angular/router’;

8) Angular has built-in checks against injection attacks from hackers and has built in ability to recognize a value as unsafe. It also will automatically sanitize and removes script tags and other security vulnerabilities

9) Angular supports two Location Strategies – a Hash Location Strategy and a Path Location Strategy. It affects how your URL appears: e.g. “http://localhost:9099/#/user” vs. “http://localhost:9099/user”

10) Angular templates now include advanced if/then/else condition statement handling that control how your page/template appear on rendering