SHARE

Hey ninjas, in this Angular 2 tutorial I’ll show you how to bind events to HTML elements. We bind events using normal parenthesis such as (click).

—– 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

7 COMMENTS

  1. Hello guys,

    Alert function didn't work for me
    {

    alert("you clicked it");
    }

    because I used double quotes for string instead of single ' '
    Really ? does it matter ? How you gonna remember those small things?

  2. ma man ! what is the difference between ng-click and (click) ? becoz the last out doesn't show up in the VS code intellsense ! thanks alot bro !

LEAVE A REPLY

Please enter your comment!
Please enter your name here