Skip to content

Commit 2ad8509

Browse files
committed
updated angular container attrs
1 parent 30836b2 commit 2ad8509

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/angular/container.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ <h1>Container</h1>
2020
</mui-container>
2121

2222
<h1>Fluid Container</h1>
23-
<mui-container fluid>
23+
<mui-container mui-fluid>
2424
<mui-panel>
2525
</mui-panel>
2626
</mui-container>
27-
2827
</body>
2928
</html>

src/angular/container.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ module.exports = angular.module('mui.container', [])
99
link: function(scope, element, attr, controller, linker) {
1010
/**
1111
* <mui-container ng-controller=""></mui-container>
12-
* ng-transclude's scope problem , if ng-transclude used , ng-controller will not work.
12+
* ng-transclude's scope problem , if ng-transclude used
13+
* ng-controller will not work.
1314
*/
1415
linker(scope, function(clone) {
1516
element.append(clone);
1617
});
1718

1819
/**
19-
* if fluid
20+
* if mui-fluid
2021
*/
21-
if(!angular.isUndefined(attr.fluid)){
22-
element.removeClass('mui-container').addClass('mui-container-fluid');
22+
if (!angular.isUndefined(attr.muiFluid)){
23+
element.removeClass('mui-container').addClass('mui-container-fluid');
2324
}
2425
}
2526
};

0 commit comments

Comments
 (0)