Angular — New features in Angular 2.3

Gerard Sans
Dec 12, 2016 · 4 min read
John Maeda — Laws of simplicity

Components Inheritance

Components Inheritance is very powerful and can help you build better Applications

ViewContainer (Structural Directives)

<h2 *myIf="show">Hello {{name}}</h2> <-- EmbeddedView
<button (click)="show=!show">
<template [myIf]="show">     <-- ViewContainerRef
<h2>Hello {{name}}</h2> <-- TemplateRef

Access to Angular version

<my-app ng-version="2.3.0">
<h2>Hello Angular2</h2>
import {VERSION} from '@angular/core';console.log(VERSION);
// {
// full: "2.3.0"
// major: "2"
// minor: "3"
// patch: "0"
// }

Language Service for templates

Gerard Sans

Written by

Developer Advocate @AWSCloud | Just be AWSome | MC Speaker Trainer Community Leader | Views are my own | @fullstackcon @ReactiveConf @ngcruise @UphillConf UK ☂

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade