Tag Archives: angular-2

ng-content with Angular2 (Transclusion) – AngularCli

ng-content with Angular2 (Transclusion) – AngularCli

ng-content with Angular2 (Transclusion) – AngularCli In this post we are going to look at a special feature in Angular2. The feature allows to create templates such that parent components can inject parts into the view of the child component. The child components use the injected part using ng-content. When should we use ng-content? ng-content… 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 – Using 3rd Party Libraries

Angular2 – Using 3rd Party Libraries

Angular2 – Using 3rd Party Libraries: We always need third party libraries to build any application. The same is true for applications built using Angular2. In this post, we are going to discuss how we can use 3rd party libraries in an Angular2 app. We have discussed adding these libraries to an Angular2 app with… 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 »

Angular2- Environment Specific Configuration

Angular2- Environment Specific Configuration Angular2 makes development and release workflows a lot easier than other javascript frameworks. One such ease is the ease of environment specific settings and configuration. In this post, we are going to see how we can keep environment specific configurations in an angular2 application developed using Angular CLI. We will be… Continue reading »