SHARE

Hey all, in this Angular 2 tutorial for beginners, I’ll be showing you how we can use property binding to dynamically set the values of native HTML properties. We use square brackets to bind data to a HTML property.

—– COURSE LINKS:
+ Repo – https://github.com/iamshaunjp/angular-2-playlist
+ Atom editor – https://atom.io/
+ Download Node.js – https://nodejs.org/en/

———————————————————————————————
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage…

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

========== PSD to WordPress Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gnow7e45LQFkNVxwQ5BH-W

============ Node.js for Beginners Playlist =============

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

================== Social Links ==================

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

6 COMMENTS

  1. it appears that on the latest version, myBoolean = false will not return the ng-reflect-required attribute but rather omit the code entirely. Is this accurate or am I doing something wrong?

  2. Hi Shaun, at the last example if the angular directive passes required to be false, should then the required attribute itself not be present on the input field?
    To be more precise, on https://youtu.be/VkxyuKuJZrM?t=3m26s, the angular directive says false, and the required attribute is not present. But on the end of the video, the angular directive says false and the required attribute is present. It appears that there is a difference between the way the data is binded. What is the difference between attribute binding and string interpolation? Thanks!

LEAVE A REPLY

Please enter your comment!
Please enter your name here