Javatpoint Logo

91-9990449935

 0120-4256464

AngularJS First Example

AngularJS applications are a mix of HTML and JavaScript. The first thing you need is an HTML page.

Second, you need to include the AngularJS JavaScript file in the HTML page so we can use AngularJS:

Note: You should always use the latest version of AngularJS, so it is not necessary to use the same version as the above example.

AngularJS First Example

Following is a simple "Hello Word" example made with AngularJS. It specifies the Model, View, Controller part of an AngularJS app.

Test it Now

View Part

Controller Part