Giter VIP home page Giter VIP logo

angular-demo3's Introduction

Angular-Demo3

This project was generated with Angular CLI version 8.3.19.

Development server

  • Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

  • Run json-server -w db.json for a db json db server. api server Navigate to http://localhost:3000/.

Template-driven form 表單練習

  1. 請在 sign-up.component 建立表單
  2. sign-up.component 組件放到 app.component 組件當中使用
  3. sign-up.component 組件中的表單有以下條件
    • 2 個表單群組
      • 第一個群組包含:
        • 姓名 - 必填
        • 密碼 - 必填且最小必須輸入 10 個字元
      • 第二個群組 - 在第一個群組驗證為正確後,才可出現
        • E-mail - 必填且必須符合 email 格式檢查
        • 推薦人姓名
          • 利用使用者輸入的關鍵字發送 http request 查詢拿到 member 的名單,將前三個人,利用 formArray 的方式 render 出來,並且利用屬性 isRequire 決定是否必填
    • 1 個提交按鈕
      • 提交動作:要在表單驗證為正確後,才可啟用點擊操作
      • 按下後提交後,要 清空重置 第二個表單群組內的資料
        • 清空可參考 ReSet(); 方法

angular-demo3's People

Contributors

weweaaa avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.