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
When ng-template is used, the Angular renderer creates comment nodes. In the context of NativeScript, these comments are invisible elements - Placeholders, which are attached to the visual tree.
Since the Page can have only child, the above will be rendered as:
(ProxyViewContainer
(CommentNode) // anchor for the second label
(ActionBar)
)
The first label gets overridden by the CommentNode, created for the second label. In the above case, there's an easy workaround - one can simply wrap the labels in a StackLayout. Still, there are more complicated scenarios with no easy solution.
The text was updated successfully, but these errors were encountered:
When
ng-template
is used, the Angular renderer creates comment nodes. In the context of NativeScript, these comments are invisible elements - Placeholders, which are attached to the visual tree.Consider the following layout:
Since the
Page
can have only child, the above will be rendered as:The first label gets overridden by the
CommentNode
, created for the second label. In the above case, there's an easy workaround - one can simply wrap the labels in aStackLayout
. Still, there are more complicated scenarios with no easy solution.The text was updated successfully, but these errors were encountered: