Skip to content

Instantly share code, notes, and snippets.

@knownasilya
Last active September 27, 2018 16:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knownasilya/a2e4641bd8f923cd66886e294e8c245c to your computer and use it in GitHub Desktop.
Save knownasilya/a2e4641bd8f923cd66886e294e8c245c to your computer and use it in GitHub Desktop.
MU Packages/Use

Files Layout

  • packages
    • inputs
      • src
        • ui
          • components
            • date
            • text
            • time
            • credit-card
    • truth-helpers
      • src
        • ui
          • components
            • and
            • or
            • not
            • eq
  • src
    • ui
      • components
        • my-form

my-form

{{use Date, Text from 'inputs'}}
{{use or from 'truth-helpers'}}

<form onsubmit={{action 'submitForm'}}>
  <Text @attr='name' @model={{@model}} />
  <Date @attr='dateOfBirth' @model={{@model}} />
  
  <button type='submit'>
    Submit
  </button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment