Skip to content

Commit 22f60d3

Browse files
maurya777Narretz
authored andcommitted
docs(guide/Forms): display scope form / master data in examples
It will be good to have the binding results in the CSS classes / binding to form / control state example, similar to the Simple Form example. Closes angular#12326
1 parent 3292d15 commit 22f60d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/content/guide/forms.ngdoc

+4
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ and failing to satisfy its validity.
9393
<input type="button" ng-click="reset()" value="Reset" />
9494
<input type="submit" ng-click="update(user)" value="Save" />
9595
</form>
96+
<pre>form = {{user | json}}</pre>
97+
<pre>master = {{master | json}}</pre>
9698
</div>
9799

98100
<style type="text/css">
@@ -181,6 +183,8 @@ didn't interact with a control
181183
<input type="button" ng-click="reset(form)" value="Reset" />
182184
<input type="submit" ng-click="update(user)" value="Save" />
183185
</form>
186+
<pre>form = {{user | json}}</pre>
187+
<pre>master = {{master | json}}</pre>
184188
</div>
185189
</file>
186190

0 commit comments

Comments
 (0)