![]() And npm can be used to download these dependencies and attach them to your project. Angular JS as a framework has dependencies on other components. Npm − This is known as the node package manager that is used to work with the open source repositories. To start working with Angular 2, you need to get the following key components installed. The official site for Angular is The site has all information and documentation about Angular 2. ![]() We will discuss all these components in detail in the subsequent chapters of this tutorial. ![]() Service − This is used to create components which can be shared across the entire application. Metadata − This can be used to add more data to an Angular JS class. Templates − This is used to define the views of an Angular JS application. ![]() Each piece of code or module is designed to perform a single task.Ĭomponent − This can be used to bring the modules together. Modules − This is used to break up the application into logical pieces of code. In addition, Angular 2 has better event-handling capabilities, powerful templates, and better support for mobile devices. So for example if you had a data component that picked data from a database, you could have it as a shared service that could be used across multiple applications. Services − Services are a set of code that can be shared by different components of an application. This is a superset of JavaScript and is maintained by Microsoft. TypeScript − The newer version of Angular is based on TypeScript. This helps in better maintaining the application over a period of time. Components help to build the applications into many modules. Features of Angular 2įollowing are the key features of Angular 2 −Ĭomponents − The earlier version of Angular had a focus of Controllers but now has changed the focus to having components over controllers. The initial release of the framework was in October 2010. It was ensured that the framework could be easily tested. Also, testing was considered as a key aspect while building the framework. This framework was used to overcome obstacles encountered while working with Single Page applications. It was built by the developers at Google. Change the parameters in tasks.Angular JS is an open source framework built over JavaScript. Use Ctrl+Shift+p to find Configure Task Runner.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |