Using TypeScript Decorators with Angular

A session at Boise Code Camp 2016

Saturday 19th March, 2016

3:05pm to 4:20pm (MST)

Session Level: 200

TypeScript decorators, based on the ES2016 decorator proposal and introduced as part of TypeScript 1.5, provide developers with a way to modify a JavaScript class, property, method, or method parameter using a convenient declarative syntax. We'll start this session by creating our own decorator, to see firsthand how they work. Then, we'll take a look at how decorators are used when creating Angular 2 components. Lastly, we'll see how to use decorators with AngularJS 1 controllers to make them look more syntactically similar to Angular 2 components.

This session is for developers who are using (or interested in using) TypeScript with AngularJS 1 or Angular 2.

About the speaker

This person is speaking at this event.
James Churchill

.NET Teacher at Treehouse Inc.

James has worked extensively with a variety of technologies, including ASP. NET MVC, Entity Framework, SQL Server, JavaScript, TypeScript, Knockout.js, AngularJS, and Twitter Bootstrap. James, a self-confessed geek who enjoys talking about programming and learning new technologies, recently joined the Treehouse team as a teacher.

When he is not working, he can be found skiing with his wife and kids, working on the house, playing video games, walking the dog, playing music with his band, or hanging out in the yard with his chickens.

Sign in to add slides, notes or videos to this session

Tell your friends!


Time 3:05pm4:20pm MST

Date Sat 19th March 2016

Short URL


View the schedule



See something wrong?

Report an issue with this session