NIELIT O Level Exam

Which of the following directives are used in Angular js?

Which of the following directives are used in Angular js?

एंगुलर जेएस में निम्नलिखित में से कौन से डायरेक्टिव का उपयोग किया जाता है?

A. ng-app

B. nc-init

C. Both A and B

D. None of these




Correct Answer is :

A. ng-app



Explanation
AngularJS, the JavaScript framework developed by Google, uses various directives to extend HTML and provide additional functionality. Here are some commonly used AngularJS directives: ng-app: Declares the root element of the AngularJS application and initializes the AngularJS framework. ng-controller: Defines the controller for a particular section of the HTML. It establishes a scope for the controller, allowing it to interact with the view. ng-model: Binds an HTML input element to a property on the controller's scope, enabling two-way data binding. ng-bind: Similar to ng-model, it binds an HTML element's content to an expression in the controller's scope. ng-repeat: Iterates over a collection (such as an array or object) and duplicates a section of HTML for each item in the collection. ng-if and ng-show/ng-hide: Conditionally show or hide elements based on a given expression. ng-click, ng-change: Listens for click or change events and executes a specified expression. ng-submit: Listens for the form submission event and executes a specified expression. ng-class and ng-style: Dynamically apply CSS classes or styles based on expressions. ng-include: Includes an external HTML file into the current template.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad