You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 16, 2022. It is now read-only.
What should be considered part of a component's public API? This is important to know for both writers of components (so they're not exposing more than they wish to) and consumers of components (so they're not using pieces of the component that are intended to be internal.
This question arises because the standard Dart convention of making a getter/setter library private often cannot be used in AngularDart because those fields must be public in order to be used in the component's template.
Some possibilities:
Non-@Input/@Output public APIs should defined through explicit 'handle' interfaces that the component implements. If they aren't, don't touch them.
Anything not marked @visibleForTemplate is fair game.
Reading any public data is fine, but mutating pieces of the component is frowned upon unless it's explicitly stated otherwise.
The text was updated successfully, but these errors were encountered:
Forked discussion from #930.
What should be considered part of a component's public API? This is important to know for both writers of components (so they're not exposing more than they wish to) and consumers of components (so they're not using pieces of the component that are intended to be internal.
This question arises because the standard Dart convention of making a getter/setter library private often cannot be used in AngularDart because those fields must be public in order to be used in the component's template.
Some possibilities:
@Input
/@Output
public APIs should defined through explicit 'handle' interfaces that the component implements. If they aren't, don't touch them.@visibleForTemplate
is fair game.The text was updated successfully, but these errors were encountered: