Angularjs Controller


AngularJS Directives AngularJS Expressions

Angularjs Controller

AngularJS applications are controlled by Controller. AngularJS controllers are used for control the data of AngularJS applications. AngularJS controllers are regular JavaScript Objects.

For define controller in AngularJS application we need ng-controller directive names


<!DOCTYPE html>
<script src= ""></script>

<div ng-app="" ng-controller="AJSController">

First Name: <input type="text" ng-model="firstName"><br>
Last Name: <input type="text" ng-model="lastName"><br>
Full Name: {{firstName + " " + lastName}}


function AJSController($scope) {
    $scope.firstName = "Harry",
    $scope.lastName = "Porter"



First Name:
Last Name:

Full Name: {{firstName + " " + lastName}}

In above example controller are use for conrtoller firstName and lastName. AngularJS will invoke personController with a $scope object.

AngularJS Directives AngularJS Expressions


Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: or 9999595223

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements

Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: or 9999595223 Try this Keyword C++ Programs