- 
                Notifications
    
You must be signed in to change notification settings  - Fork 609
 
Open
Labels
community:good-first-issueGood issues for first time contributorsGood issues for first time contributorscommunity:requestIssues specifically reported by a member of the community.Issues specifically reported by a member of the community.docs:exampleTutorial and example workTutorial and example work
Description
🙋 Documentation Request
As far as I can tell, the proper way to use the FormAssociated class in a FAST web component is to:
- add 
import { FormAssociated } from "@microsoft/fast-foundation"; - change 
extends FASTElementtoextends FormAssociated(FASTElement) - add the property 
private internals: ElementInternals = this.elementInternals; - call 
this.internals.setFormValue(initialValue);inconnectedCallbackto set the initial value - call 
this.internals.setFormValue(newValue);every time the value changes 
I tried all of this, but TypeScript doesn't like changes 2 and 3.
Where can I find an example of using the FormAssociated class or any documentation on it?
Metadata
Metadata
Assignees
Labels
community:good-first-issueGood issues for first time contributorsGood issues for first time contributorscommunity:requestIssues specifically reported by a member of the community.Issues specifically reported by a member of the community.docs:exampleTutorial and example workTutorial and example work