Angular2 js

What is Angular2 js?

Angular, or AngularJS as it’s officially known, is a front-end structural framework for dynamic web app development. It utilizes HTML as a template language which it then extends to define an application’s components. The Angular framework provides data binding and dependency injection that minimizes the amount of code you have to write yourself. Since Angular works within the browser, it may be employed with your server technology of choice.

AngularJS is by far the most popular JavaScript framework available today for creating web applications. And now Angular 2 and TypeScript are bringing true object oriented web development to the mainstream, in a syntax that is strikingly close to Java 8. It is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. Angular’s data binding and dependency injection eliminate much of the code you currently have to write.

Features

  • Cross Platform

    • Progressive web apps

      Use modern web platform capabilities to deliver app-like experiences. High performance, offline, and zero-step installation.

    • Native

      Build native mobile apps with strategies from Ionic Framework, NativeScript, and React Native

    • Desktop

      Create desktop-installed apps across Mac, Windows, and Linux using the same Angular methods you’ve learned for the web plus the ability to access native OS APIs.

  • Speed and Performance

    • Code generation

      Angular turns your templates into code that’s highly optimized for today’s JavaScript virtual machines, giving you all the benefits of hand-written code with the productivity of a framework.

    • Universal

      Serve the first view of your application on node.js, .NET, PHP, and other servers for near-instant rendering in just HTML and CSS. Also paves the way for sites that optimize for SEO.

    • Code splitting

      Angular apps load quickly with the new Component Router, which delivers automatic code-splitting so users only load code required to render the view they request.

  • Productivity

    • Templates

      Quickly create UI views with simple and powerful template syntax.

    • Angular CLI

      Command line tools: start building fast, add components and tests, then instantly deploy.

    • IDEs

      Get intelligent code completion, instant errors, and other feedback in popular editors and IDEs.

Core Features

Following are most important core features of AngularJS −

  • Data-binding − It is the automatic synchronization of data between model and view components.
  • Scope − These are objects that refer to the model. They act as a glue between controller and view.
  • Controller − These are JavaScript functions that are bound to a particular scope.
  • Services − AngularJS come with several built-in services for example $https: to make a XMLHttpRequests. These are singleton objects which are instantiated only once in app.
  • Filters − These select a subset of items from an array and returns a new array.
  • Directives − Directives are markers on DOM elements (such as elements, attributes, css, and more). These can be used to create custom HTML tags that serve as new, custom widgets. AngularJS has built-in directives (ngBind, ngModel…)
  • Templates − These are the rendered view with information from the controller and model. These can be a single file (like index.html) or multiple views in one page using “partials”.
  • Routing − It is concept of switching views.
  • Model View Whatever − MVC is a design pattern for dividing an application into different parts (called Model, View and Controller), each with distinct responsibilities. AngularJS does not implement MVC in the traditional sense, but rather something closer to MVVM (Model-View-ViewModel). The Angular JS team refers it humorously as Model View Whatever.
  • Deep Linking − Deep linking allows you to encode the state of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state.
  • Dependency Injection − AngularJS has a built-in dependency injection subsystem that helps the developer by making the application easier to develop, understand, and test.

 

Advantages of AngularJS

  • AngularJS provides capability to create Single Page Application in a very clean and maintainable way.
  • AngularJS provides data binding capability to HTML thus giving user a rich and responsive experience
  • AngularJS code is unit testable.
  • AngularJS uses dependency injection and make use of separation of concerns.
  • AngularJS provides reusable components.
  • With AngularJS, developer write less code and get more functionality.
  • In AngularJS, views are pure html pages, and controllers written in JavaScript do the business processing.

3 Comments

  1. Respect to website author , some wonderful entropy.

    1. Dinesh Ghimire says:

      Thank you

  2. Pretty! This was a really wonderful post. Thank you for your provided information.

Leave a Reply

Your email address will not be published. Required fields are marked *