Skip to main content

Posts

Showing posts from September, 2019

AngularJS Vs. Angular : Understanding the Differences

AngularJS Vs. Angular 1. Angular is not an upgrade of AngularJS but it is completely rewritten. 2. AngularJS has easy setup. only need to include angular.js library. Angular 2have a difficult setup which has already mentioned in my previous blog:-  https://uisource.blogspot.com/2019/09/build-angular-appplication.html 3. Angular is written in Typescript.AngularJS is written in javascript. 4. Angular is the component-based approach. AngularJS is an MVC based approach. 5. AngularJS was not built with mobile support in mind, where Angular 2 is mobile-oriented. 6. AngularJS’s core concept is $scope but you will not find $scope in Angular 2.0 and above. 7. AngularJS Controllers are gone in Angular v2. We can say that Controllers are replaced with “Components” in Angular 2. 8. Two-way data binding: ng-model has been replaced with [(ngModel)]. 9. In Angular 2, Structural directives syntax is changed. ng-repeat is replaced with *ngFor. 10. Angular 2 uses camelCase synta

Build Angular Appplication

Building Angular Applications below steps are for creating angular Application         Downloading and installing Node.js and npm Install Angular CLI Create an app with Angular CLI Build & Open the application 1. Downloading and installing Node.js and npm Angular required node.js, we need to download NPM(Node Package Manager). we can download it from here-  https://nodejs.org/en/ Once you have installed Node.js, you can use the npm command to install TypeScript, open command prompt & type this below command- npm install npm –g it will install all packages globally. g stand for global . once you have done it. you can check which node version installed in your machine. node -v 2. Install Angular CLI To install Angular CLI, run $ npm install -g @angular/cli This will install the ng command globally on your system. ng stands for Angular. check angular CLI version with help below command ng v 3.Create an app with Angul