• what is angular Js?

    Answered

    what is angular Js?

    Silver Member Asked on May 27, 2016 in AngularJS.
    Add Comment
  • 3 Answer(s)
    Best answer

    AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. Angular’s data binding and dependency injection eliminate much of the code you would otherwise have to write

    Silver Member Answered on May 27, 2016.
    Add Comment
     <!DOCTYPE html>
     <html lang="en-US">
     <head>
     <script src="angular.min.js"></script>
     </head>
     <body>
    <div ng-app="">
     <p>First Name : <input type="text" ng-model="firs_naem"></p>
     <h1>Hello {{first_name}}</h1>
     </div>
    </body>
     </html>
    
    Silver Member Answered on May 27, 2016.
    Add Comment

    AngularJS Extends HTML

    AngularJS extends HTML with ng-directives.

    The ng-app directive defines an AngularJS application.

    The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.

    The ng-bind directive binds application data to the HTML view.

    Example explained:

    AngularJS starts automatically when the web page has loaded.

    The ng-app directive tells AngularJS that the <div> element is the “owner” of an AngularJS application.

    The ng-model directive binds the value of the input field to the application variable name.

    The ng-bind directive binds the innerHTML of the <p> element to the application variable name.

     

    Silver Member Answered on May 27, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.