Skip to main content

Create a webpage to show the dinner menu for a restaurant using AngularJS.

  • ng-controller:The ng-controller directive defines the application controller. A controller is a JavaScript Object, created by a standard JavaScript object constructor.


  • ng-option:This element will then represent the null or "not selected" option.


  • ng-change:The ng-change directive tells AngularJS what to do when the value of an HTML element changes.


  • ng-disabled:The ng-disabled directive sets the disabled attribute of a form field (input, select, or textarea). 


  • ng-modelit is a directive which binds input, select and textarea, and stores the required user value in a variable and we can use that variable whenever we require that value. It also is used during validations in a form. 
Screenshots:


Comments