Manage Angular 2 Elements with Events and Refs

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Angular 2 provides powerful template syntax to access events and elements inside of your Component's class. This lesson shows how to access the click events off of a button and the values and element off of an input.

Przemysław
~ 9 years ago

If you plan to do some custom events please be aware Event names need to be lower case!!!

And from alpha.34 you may use dash syntax.

Nils
~ 9 years ago

how does this all typescript compile in the browser work? magic ? its pretty awesome none the less

Joel Hooks
~ 9 years ago

how does this all typescript compile in the browser work? magic ? its pretty awesome none the less

It is using system.js and typescript.js to compile on the fly. It is nice, but you also lose a huge benefit from TypeScript compilation and it makes finding errors a real chore. Silent failures.

Nice way to drop in and start doing stuff though!

BHRUGU DESAI
~ 8 years ago

what IDE is this. thanks!