Tag Archives: angular2

Angular2 – Attribute Directives

Angular2 – Attribute Directives Directives give us the ability to create tags which can be directly used in the template. Since they are not HTML5 templates, we need to define how Angular can render these components In the end, they would be converted to a representation that a browser understands. Angular can convert these directives… Continue reading »

Play Framework and CORS with Angular2 Client(Cross Origin Resource Sharing)

Play Framework and CORS with Angular2 Client(Cross Origin Resource Sharing) Although Play framework allows us to write complete web application including UI. But we can just keep our REST based HTTP service in Play Framework and access them from any other application hosted on another server. But as soon as you do it, you start… Continue reading »

AngularCli – Passing Data In / Out of Angular2 Components

AngularCli – Passing Data In / Out of Angular2 Components In this post how we can pass data in and out of an angular2 component. Here we are creating an app to increment the input number. We have a textbox to enter a number. We are also creating a component. The number entered in the… Continue reading »

Angular2 Routes

Angular2 Routes: In this post we are going to use how to use routes with Angular2 for your components. We are going to create two components and add routes for those components. Let’s first install angular-cli. Let’s create a new project HelloWorld. The command creates the following files: The main folder structure looks like this:… Continue reading »

Angular 2 CLI – An Introduction

Angular 2 CLI – An Introduction We have seen before how yeoman allows us to write the apps faster by taking care of most of the scaffolding work [HTTP based Rest Service in Angular JS using Yeoman]. Angular-CLI is a similar feature of Angular 2 providing support of different parts of an angular app, giving… Continue reading »