Search code examples
javascriptangularjsangularjs-directiveangularjs-scopeangular-ui-router

Display AngularJS inputs from the frontend


I'm currently working on an AngularJS project where user inputs from a drop down list and a text box on a page can be displayed on a new page. For instance, selecting option of Mr and entering a name which is then displayed on a new page as "You're Mr YourName." How can this be done? Any help?


Solution

  • <select ng-model="title">
       <option>Mr</option>
       <option>Ms</option>
    </select>
    <input type="text" ng-model="yourName">
    You're {{title}} {{yourName}}