GitHub

  • import { Injectable } from ‘ @angular/core ‘ ; import { Action } from ‘ @ngrx/store ‘ ; import { ActionCreatorFactory } from ‘ ngrx-action-creator-factory ‘ ; @ Injectable () export class NowPlaylistActions { static MEDIA_ENDED = ‘ [NOW PLAYLIST] MEDIA_ENDED ‘ ; static QUEUE = ‘ [NOW PLAYLIST] QUEUE ‘ ; static SELECT = ‘ [NOW PLAYLIST] SELECT ‘ ; // as injectable constructor ( private acf : ActionCreatorFactory ) { this .
  • The factory allows to decalre a minimal action creator declaration with a typed payload for the action creator function and have type support when using this function.
  • Whenever a ts file is changed, it will rerun the tests.
  • npm install ngrx-action-creator-factory –save-dev
  • The service came out as a result of the open source project Echoes Player – an alternative player for watching and listening to media from youtube.

ngrx-action-creator-factory – An Action Creator Factory for ngrx
Continue reading “GitHub”

Video – TypeScript: Angular 2’s Secret Weapon – Code with Dan Blog

TypeScript is Angular 2's secret weapon, at least acc. to @DanWahlin. Find out why:

  • Angular 2 is built using TypeScript and relies on these features behind the scenes.
  • While several of the features covered are available (and have been available for years) in server-side languages such as C#, Java and others, developers accustomed to writing browser-centric applications haven’t been able to leverage these features in the past.
  • I had the awesome opportunity to speak at ng-conf (one of my favorite conferences) about TypeScript and some of the key features it provides that are used in Angular 2 .
  • TypeScript provides a great way to take advantage of ES6 features while also providing support for some of the features I discuss in the talk such as interfaces, generics, type support and more.
  • The entry was posted in Angular 2 TypeScript on June 7, 2016 by Dan Wahlin

I had the awesome opportunity to speak at ng-conf (one of my favorite conferences) about TypeScript and some of the key features it provides that are used in Angular 2. While several of the features covered are available (and have been available for years) in server-side languages such as C#, Java and others, developers accustomed to writing browser-centric applications haven’t been able to leverage these features in the past. TypeScript provides a great way to take advantage of ES6 features while also providing support for some of the features I discuss in the talk such as interfaces, generics, type support and more. Angular 2 is of course built using TypeScript and relies on these features behind the scenes.
Continue reading “Video – TypeScript: Angular 2’s Secret Weapon – Code with Dan Blog”

Video – TypeScript: Angular 2’s Secret Weapon – Code with Dan Blog

  • Angular 2 is built using TypeScript and relies on these features behind the scenes.
  • While several of the features covered are available (and have been available for years) in server-side languages such as C#, Java and others, developers accustomed to writing browser-centric applications haven’t been able to leverage these features in the past.
  • I had the awesome opportunity to speak at ng-conf (one of my favorite conferences) about TypeScript and some of the key features it provides that are used in Angular 2 .
  • TypeScript provides a great way to take advantage of ES6 features while also providing support for some of the features I discuss in the talk such as interfaces, generics, type support and more.
  • The entry was posted in Angular 2 TypeScript on June 7, 2016 by Dan Wahlin

Read the full article, click here.


@wiwer77: “#Video – #TypeScript: #AngularJS 2’s Secret Weapon”


I had the awesome opportunity to speak at ng-conf (one of my favorite conferences) about TypeScript and some of the key features it provides that are used in Angular 2. While several of the features covered are available (and have been available for years) in server-side languages such as C#, Java and others, developers accustomed to writing browser-centric applications haven’t been able to leverage these features in the past. TypeScript provides a great way to take advantage of ES6 features while also providing support for some of the features I discuss in the talk such as interfaces, generics, type support and more. Angular 2 is of course built using TypeScript and relies on these features behind the scenes.


Video – TypeScript: Angular 2’s Secret Weapon – Code with Dan Blog