mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
19 lines
363 B
JavaScript
19 lines
363 B
JavaScript
|
|
/**
|
|
* @ngdoc directive
|
|
* @name ionPane
|
|
* @module ionic
|
|
* @restrict E
|
|
*
|
|
* @description A simple container that fits content, with no side effects. Adds the 'pane' class to the element.
|
|
*/
|
|
IonicModule
|
|
.directive('ionPane', function() {
|
|
return {
|
|
restrict: 'E',
|
|
link: function(scope, element, attr) {
|
|
element.addClass('pane');
|
|
}
|
|
};
|
|
});
|