From a4c214d8772531f7d41f08cc88502581c70572d3 Mon Sep 17 00:00:00 2001 From: Nievac Date: Tue, 25 Jun 2019 06:22:58 +0800 Subject: [PATCH] Create AngularJS ng-model Directive (#27791) --- .../angularjs/angularjs-ng-model/index.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 guide/english/angularjs/angularjs-ng-model/index.md diff --git a/guide/english/angularjs/angularjs-ng-model/index.md b/guide/english/angularjs/angularjs-ng-model/index.md new file mode 100644 index 0000000000..d0cf32732e --- /dev/null +++ b/guide/english/angularjs/angularjs-ng-model/index.md @@ -0,0 +1,29 @@ +--- +title: AngularJS ng-model Directive +--- +# AngularJS ng-model Directive +------ +With the ng-model directive you can bind the value of an input field to a variable created in AngularJS. + +Example +```html +
+ Name: +
+ + +``` +Two-Way Binding example +```html +
+ Name: +

You entered: {{name}}

+
+``` + +More info @ [https://www.w3schools.com/angular/angular_model.asp](https://www.w3schools.com/angular/angular_model.asp)