diff --git a/lib/accordion/accordion.dart b/lib/accordion/accordion.dart
index 460461c..ca02940 100644
--- a/lib/accordion/accordion.dart
+++ b/lib/accordion/accordion.dart
@@ -3,6 +3,7 @@
// All rights reserved. Please see the LICENSE.md file.
library angular.ui.accordion;
+import 'dart:html' as html;
import 'package:angular/angular.dart';
//import 'package:angular_ui/app/injectable_service.dart';
import 'package:angular/utils.dart' as utils;
@@ -17,6 +18,7 @@ class AccordionModule extends Module {
bind(AccordionComponent);
bind(AccordionHeadingComponent);
bind(AccordionGroupComponent);
+ bind(AccordionHeadingTranscludeComponent);
bind(AccordionConfig, toValue:new AccordionConfig());
}
}
@@ -31,14 +33,14 @@ class AccordionConfig {
publishAs: 'ctrl',
visibility: Directive.CHILDREN_VISIBILITY,
templateUrl: 'packages/angular_ui/accordion/accordion.html',
- applyAuthorStyles: true
+ useShadowDom: false
)
@Component(
selector: '[accordion]',
publishAs: 'ctrl',
visibility: Directive.CHILDREN_VISIBILITY,
templateUrl: 'packages/angular_ui/accordion/accordion.html',
- applyAuthorStyles: true
+ useShadowDom: false
)
class AccordionComponent {
@NgTwoWay('close-others') bool isCloseOthers;
diff --git a/lib/accordion/accordion_group.dart b/lib/accordion/accordion_group.dart
index d21d1fc..e13e2fd 100644
--- a/lib/accordion/accordion_group.dart
+++ b/lib/accordion/accordion_group.dart
@@ -8,11 +8,11 @@ part of angular.ui.accordion;
publishAs: 'ctrl',
visibility: Directive.CHILDREN_VISIBILITY,
templateUrl: 'packages/angular_ui/accordion/accordion_group.html',
- applyAuthorStyles: true
+ useShadowDom: false
)
class AccordionGroupComponent implements DetachAware {
bool _isOpen = false;
- @NgAttr('heading') String heading;
+ @NgAttr('heading') var heading;
Scope scope;
AccordionComponent accordion;
@@ -29,6 +29,7 @@ class AccordionGroupComponent implements DetachAware {
}
}
+ @override
void detach() {
this.accordion.removeGroup(this);
}
@@ -40,15 +41,35 @@ class AccordionGroupComponent implements DetachAware {
*