A look at the Form Model

We've talked a lot about the Form Model lately, yet we still haven't seen it once. It would greatly help to have it on screen while developing the form templates, especially if it can be updated in real time as we play with the form inputs and controls.

Here's a convenient HTML snippet containing the Template Syntax required to let it happen:

<div class="panel panel-info"     style="margin-top: 20px;">    <div class="panel-heading">Form debug info</div>    <div class="panel-body">        <p><strong>Form value:</strong></p>        <div class="help-block">            {{ form.value | json }}        </div>        <p><strong>Form status:</strong></p>        <div class="help-block">            {{ form.status | json }}        </div>    </div></div>

We can put this snippet below any of our form-based ...

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.