The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Angular 2 - Binding (es5)

Angular 2 - Binding (es5)

3:01
Binding in Angular 2 works much the same way as binding in Angular 1, but there are some very important differences. John covers the differences and improvements you can look forward to as you start building your own Angular 2 components.
Watch this lesson now
Avatar
egghead.io

Binding in Angular 2 works much the same way as binding in Angular 1, but there are some very important differences. John covers the differences and improvements you can look forward to as you start building your own Angular 2 components.

Avatar
Andy

am I the only one who feels this is a step backwards?

Avatar
John

What do you mean by "step backwards"? Do you disagree with Angular 2's components with controllers approach? I think it's a big improvement over how you write components in Angular 1.x.

In reply to Andy
Avatar
Andy

What I meant was, that this two-way data-binding example would be simpler in Angular 1.x. To clarify, I like the "everything is a component" idea. Angular 1.x introduces many new concepts that seem to just boil down to components in Angular 2. I also like the move to DOM properties over HTML attributes and I don't even mind the strange syntax. Mainly because it allows you to convey very specific meaning to angular with very little code. And that is my main gripe about the Angular 2 component syntax, it seams very verbose. Am I wrong on that? My understanding is that Angular 2 is being designed with the es6 class syntax in mind and that is part of the reason it looks clunky in es5, is that the case?

In reply to John
Avatar
John

I wouldn't worry about syntax. Syntax can easily be wrapped/refined/etc for ease-of-use to improve the "code writing" experience. Once we start getting closer to release and apis are locked down, I'll talk more about improving syntax. For now, it's more important to focus on concepts.

In reply to Andy
Avatar
Scott

I really like the way Angular 2 has come together. Is {{}} still a two way binding and {{::name}} one time?

Also that's not webstorm is it John have you moved on?

Avatar
jeff-regan

It is really bizarre that downloading this video downloads a completely different video.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?