Loading...

ff-submit

< Back To DOCS

Purpose

The ff-submit attribute adds an event handler to send the forms field values as an object to the targeted array.

When you use the ff-submit attribute on a form, Firefight will prevent the browser’s default submit action for that form.

Sample: adding to a list of people

HTML


            

Result

  • {{firstName}} {{lastName}} - {{city}}

Firebase emulator

  • person
    • {{_key}}
      • {{_key}}: {{_value}}

Future Features

Firefight does not currently support nesting input or other elements that write to firebase inside ff-foreach.

Other resources

< Back To DOCS