AngularJS Controller example

AngularJS Controller example

In this example we will create simple AngularJS file with controller and create one variable “userName” keep in scope also bind its data to div element.

  • HTML page:

  • Output:

AngularJS Controller example

 

Run this example in Plunker here

Leave a Reply

Your email address will not be published. Required fields are marked *