Coder Social home page Coder Social logo

ng-udf's People

Watchers

 avatar  avatar

ng-udf's Issues

Add lifecycle events

The ideal workflow for a form is : render->input data->validate->submit

Events to add:

  • render: onRender
  • input data: onInputChange
  • validate: onBeforeValidation, onValidation
  • submit: onSubmit

Proposed solution:

  1. implement #5 first
  2. Create all the events as methods in ng-udf.service
  3. Expose any information required from the UdfFormBuilder class

Make form creation automatic

Description:

Right now the for is created in multiple steps:

  1. call the service with the name and config
  2. start the ng-udf component

Proposed solution

Move the service call inside of the service. Refactor in order to have the behavior separated

  1. Create a class UdfFormBuilder
  2. Transfer to this class(1. ) createForm, setComponents (ng-udf.service) and createGroup ( ng-udf.component)
  3. Add a subscription to formGrup.valueChanges in UdfFormBuilder
  4. Call this class in ng-udf.component and pass the instance to ng-udf.service

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.