- Notifications
You must be signed in to change notification settings - Fork 26.7k
Closed
Milestone
Description
A service which given a DirectiveRef can return position information about the component.
API
@Componte({ selector: 'some-component' }) @Template(...) class SomeComponent { constructor(ref:ComponentRef, ruler: Ruler) { ruler.measure(ref).then((rect:Rectangle) { rect.top/width/height/etc.. }) } } See: https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect
Metadata
Metadata
Assignees
Labels
No labels