Skip to main content
100%

Gist 8bbe11255bf32fa777dd8e9445638a0b

✓ Published0🌍 Public
NNaoray
Last edited Nov 19, 2017
Created on Nov 19, 2017

This example shows a Vue component that extends a base Spark profile form to let users update their contact information, specifically a phone number field. The component mixes in the `spark-update-contact-information` base module and initializes its `form` object with a `phone` property, merging it with existing Spark form data. On mount, it populates the phone field from the current user object. The code uses Vue’s component and mixin APIs along with the SparkForm helper and jQuery’s `$.extend` to manage the form state.

AI-generated description

Similar vizzes