1.

Is the jQuery library used in Angular?

Answer»

Yes, Angular uses jQuery if it is present in the app when your APPLICATION is being bootstrapped. However, if jQuery is not present in the script path, Angular will fall back to its own implementation of the subset of jQuery. This is called jQLite.

20. Do you know scope in Angular?

In Angular, the scope is the binding part between the HTML, i.e. the view and the Javascript, URF, controller. It acts like an object having various available properties and methods. The scope is available for both MODES, view and controller. Here’s an example of how to use the scope in Angularjs PROPERLY:

Example

<div ng-app="myApp" ng-controller="myCtrl">

<h1>{{carname}}</h1>

</div>

<script>
VAR app = angular.module('myApp', []);

app.controller('myCtrl', function($scope) {
  $scope.carname = "Volvo";
});
</script>



Discussion

No Comment Found