1. Question: Which is the correct syntax of creating AngularJS Controller?

    A
    var app = angular.module('myApp', []); angular.controller('myCtrl', function(app,$scope) { });

    B
    var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { });

    C
    var app = module('myApp', []); app.controller('myCtrl', function($scope) { });

    D
    var app = angular.module('myApp', []); app.controller( function($scope) { });

    Note: Not available
    1. Report
  2. Question: The argument to the controller function is called _____

    A
    $scope

    B
    scope

    C
    $app

    D
    $scopes

    Note: Not available
    1. Report
  3. Question: What is controller in MVC?

    A
    It is a software Code that stores the data.

    B
    It is a software Code that renders the user interface.

    C
    It is a software Code that controls the interactions between the Model and View.

    D
    None of the these.

    Note: Not available
    1. Report
  4. Question: In controllers, model data is not accessed via $scope object.

    A
    True

    B
    False

    Note: In controllers, model data is accessed via $scope object.
    1. Report
  5. Question: Which of the following is true about ng-controller directive?

    A
    ng-controller directive tells AngularJS what controller to use with this view.

    B
    AngularJS application mainly relies on controllers to control the flow of data in the application.

    C
    A controller is a JavaScript object containing attributes/properties and functions.

    D
    All of these

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd