Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Rubin authored and Ben Rubin committed Jul 15, 2016
1 parent e9e3637 commit 80083b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-material-expansion-panel",
"version": "0.4.6",
"version": "0.4.7",
"description": "Material Design Expansion Panels.",
"main": [
"dist/md-expansion-panel.js",
Expand Down
5 changes: 5 additions & 0 deletions dist/md-expansion-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ function expansionPanelDirective() {
vm.registerHeader = function (ctrl) { headerCtrl = ctrl; };
vm.registerFooter = function (ctrl) { footerCtrl = ctrl; };


if ($attrs.mdComponentId === undefined) {
$attrs.$set('mdComponentId', '_expansion_panel_id_' + $mdUtil.nextUid());
}

vm.$element = $element;
vm.componentId = $attrs.mdComponentId;
vm.expand = expand;
Expand Down
Loading

0 comments on commit 80083b6

Please sign in to comment.