Form building made easy with
Ember
Forms are a problem
Lets see how
Design a registration form for GirlsWhoJS
• Applicants must enter name, email and gender
• Only letters with spaces are allowed in the name
field. Name should be between 5 and 20
characters.
• Email should be of format abc@example.com.
• All are mandatory fields.
• Submit button should be enabled only when all
fields are entered and in valid formats.
One way to do this
(code for a traditional approach)
The Problem
• Form rendering and validations is repetitive
logic
• Code is duplicated
• Leading to increased maintenance costs
Ember to the Rescue
• Observer pattern
• Component logic
• Inheritance
The Ember Way
(Artoo’s solution for form building)
Thanks!
Aparna Vaikuntam
Architect at Artoo

Forms Emberjs

  • 1.
    Form building madeeasy with Ember
  • 3.
    Forms are aproblem
  • 4.
    Lets see how Designa registration form for GirlsWhoJS • Applicants must enter name, email and gender • Only letters with spaces are allowed in the name field. Name should be between 5 and 20 characters. • Email should be of format abc@example.com. • All are mandatory fields. • Submit button should be enabled only when all fields are entered and in valid formats.
  • 5.
    One way todo this (code for a traditional approach)
  • 6.
    The Problem • Formrendering and validations is repetitive logic • Code is duplicated • Leading to increased maintenance costs
  • 7.
    Ember to theRescue • Observer pattern • Component logic • Inheritance
  • 8.
    The Ember Way (Artoo’ssolution for form building)
  • 9.