locked
AngularJS RRS feed

  • Question

  • I know this is not the right section to paste this question. I apologize for that. But unfortunately I cannot find AngularJS section in .NET forum. 

    I am learning AngularJS. This is my source code

    <div>
            <div>
                Employee ID: <input type="text" ng-model="ID" /> <br /><br />
            </div>
            <div>
                Name: <input type="text" ng-model="name" /> <br /><br />
            </div>
            
            <div>
                Contact #: <input type="text" ng-model="Contact" /> <br /><br />
            </div>
            <div>
                Email ID: <input type="text" ng-model="Email" /> <br /><br />
            </div>
            <div>
                <input type="radio" ng-model="Gender" value="Boy" checked="checked" /> Boy <span></span>
                <input type="radio" ng-model="Gender" value="Girl" /> Girl
            </div>
            <br />
            <div>
                <input type="button" value="Submit" ng-click="{{mustHide}}" />
            </div>
            <br />
            <div ng-hide="mustHide">
                <div>
                    Employee ID: <input type="text" value="{{ID}}" ng-readonly="true" /><br /><br />
                </div>
                <div>
                    Name: <input type="text" value="{{name}}" /><br /><br />
                </div>
                <div>
                    Contact #: <input type="text" value="{{Contact}}" /><br /><br />
                </div>
                <div>
                    Email ID: <input type="text" value="{{Email}}" /><br /><br />
                </div>
                <div>
                    Gender: <input type="text" value="{{Gender}}" />
                </div>
            </div>
        </div>

    Which generates this output. All I want is the div section below the submit button to be by default hidden and when someone clicks on submit button, that section show be visble using AngularJS


    Adeel

    • Moved by CoolDadTx Friday, October 27, 2017 9:04 PM ASP.NET related
    Thursday, October 26, 2017 5:31 AM

All replies

  • Please post questions related to Angular in their forums. These forums are for MS products only. 

    For other questions related to web development please post in the ASP.NET forums.


    Michael Taylor http://www.michaeltaylorp3.net

    Friday, October 27, 2017 9:04 PM