Skip to content

Commit 430b632

Browse files
maurya777netman92
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 4a498c3 commit 430b632

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: docs/content/guide/forms.ngdoc

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ and failing to satisfy its validity.
9595
<input type="button" ng-click="reset()" value="Reset" />
9696
<input type="submit" ng-click="update(user)" value="Save" />
9797
</form>
98+
<pre>form = {{user | json}}</pre>
99+
<pre>master = {{master | json}}</pre>
98100
</div>
99101

100102
<style type="text/css">
@@ -183,6 +185,8 @@ didn't interact with a control
183185
<input type="button" ng-click="reset(form)" value="Reset" />
184186
<input type="submit" ng-click="update(user)" value="Save" />
185187
</form>
188+
<pre>form = {{user | json}}</pre>
189+
<pre>master = {{master | json}}</pre>
186190
</div>
187191
</file>
188192

0 commit comments

Comments
 (0)