Skip to content

Child Component data to parent Component #991

@abstractFlo

Description

@abstractFlo

Is there a way to get the data from an input component back to the form component?

Here is my html markup

<new-form action="#" method="POST" novalidate>
            <form-group>
                <label name="E-Mail"></label>
                <input-field name="email" type="email" get-data="@{{ getChildData }}"></input-field>
            </form-group>

            <form-group>
                <label name="Password"></label>
                <input-field name="password" type="password"></input-field>
            </form-group>

            <form-group>
                <div class="checkbox">
                    <bootstrap-checkbox name="remember" text="Remember me"></bootstrap-checkbox>
                </div>
            </form-group>

            <form-group>
                <submit classname="btn btn-primary">Sign In</submit>
            </form-group>
        </new-form>

Or is it a bad practice to separate all of the elements?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions