Universal run on the server side, crate a static application bundle get bootstrapped on the client browse. Purpose of Universal : 1. Performance.2. Compatibility with Social Media Crawlers and search engines Crawlers.3. Search Engine Optimization. Prerequisite of Angular Universal Already used “localstorage” in your existing app throw “local storage is not define” error from server. install this package and server…
Category: Angular
Angular CLI
A command line interface for Angular
- Install latest Angular global version
>npm install -g @angular/cli - >ng new my-ng-app
- >my-ng-app
- >ng serve
Angular universal server side rendering
What is Angular Universal? Angular Universal is the technology that renders Angular applications on the server. By default Angular application executes in the browser, rendering pages in the DOM (client side browser) in response to user actions. Angular SSR executes at the server side, generating a static application bundle get bootstrapped on the client. It’s load very quick in slow devices and slow network area. Angular…
How to deploy angular Universal to production?
Step: 1 – Make your existing Angular app to Angular Universal Follow this link ADD ANGULAR UNIVERSAL TO EXISTING PROJECTYou can skip if you already done. Step: 2 How does angular deploy in production? To deploy angular Universal to production run the command below. In production mode clone the project/pull from git or use FTP as requirement. deploy angular Universal…
Template Driven Forms
What is angular template driven form? Template Driven Form is written inside HTML user interface. This is one of the simplest form creation methods in Angular 2+. No code is involved in .ts component file. Template-driven forms is use two-way binding data to update the data model in an object as changes are made to the template and vice versa.…