-
Notifications
You must be signed in to change notification settings - Fork 248
Conversation
With this change, to my understanding, components will be the only way to get a new scope. |
@Pajn No we have not thought about SVG. Tell us more about the issues this creates. Perhaps we could modify the Components to work with SVG. I would love to hear your ideas. |
First, SVG doesn't support shadow dom. However with master this is no longer an issue. But just to show the problem: @Component(
selector: 'svgcomponent',
template: '<circle ng-attr-cx="{{ cmp.x }}" ng-attr-cy="{{ cmp.y }}" r="20" fill="black" />',
publishAs: 'cmp',
useShadowDom: false
)
class SvgComponent {
@NgAttr('x')
int x;
@NgAttr('y')
int y;
} The template actually gets added to the DOM, but isn't rendered. One thing that differs between AngularJS and AngularDart output is that Here is a Stackoverflow discussing the problem that were in AngularJS |
@Pajn thanks for the extensive feedback, could you please create a separate issue to make sure we address that and it doesn't get lost. Thanks. |
Any update on this? Is this ready to merge? |
Not yet. On May 7, 2014 10:43:21 PM CEST, "Miško Hevery" [email protected] wrote:
|
This is an early preview, lots of things to polish
Some TODOs:
ContextLocals
)