在Angular 9中单击按钮后如何显示表单?

问题描述 投票:0回答:1

我的页面上有一个按钮,当我单击它时,我希望表单显示在它的正下方。我还想要单击按钮的次数,它应该显示很多表格。

我是Angular 9]的新手,不知道如何在与按钮相同的页面上显示表单。

按钮的代码:

<html>
  <body ng-app>
    <button type="submit" (click)="onClickForm" > Next </button>
  </body>
</html>

代码形式:

<html>
<form>
  First Name: <input type="text" ng-model="firstname">
</form>
    

我的页面上有一个按钮,当我单击它时,我希望表单显示在它的正下方。我还希望单击按钮的次数应该显示很多表格。我是Angular的新手...

html angularjs angularjs-directive
1个回答
0
投票

解决方案是用于ANGULARJS

© www.soinside.com 2019 - 2024. All rights reserved.