Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

This blog is part of 1 Tute Sets.

AngularJs tutorials
  • Tutorial-4 AngularJS Controllers

    • 1
    • 1
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 463
    Comment on it

    Angular controllers control the data flow in application. Controller is defined by ng-controller. We define all script, function in the controller, every controller have their scope which works as parameter and that controller is applied on their $scope.

    Below is an Example of controller -

    HTML -

    <div ng-controller="firstController">
    ...
    </div>
    

    Script -

    sampleApp.controller('firstController', function($scope) {
        $scope.message = 'This message for controller;
    });
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: