Skip to content

Commit 0733158

Browse files
options_fix
1 parent fa2acb5 commit 0733158

19 files changed

+1263
-0
lines changed

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/ui_accordion_node_modules.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/ui-accordion.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 804 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/scripts/controllers/main.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
'use strict';
2+
3+
/**
4+
* @ngdoc function
5+
* @name uiAccordion.controller:MainCtrl
6+
* @description
7+
* # MainCtrl
8+
* Controller of the uiAccordion
9+
*/
10+
angular.module('uiAccordion')
11+
.controller('MainCtrl', function ($scope) {
12+
$scope.simpleAccordionOptions={
13+
closeOthers:false
14+
}
15+
$scope.accordionGroupOptions1={
16+
open:true
17+
}
18+
$scope.accordionGroupOptions2={
19+
open:false
20+
}
21+
$scope.accordionGroupOptions3={
22+
open:true
23+
}
24+
$scope.$watchCollection('accordionGroupOptions1',function(n,o){
25+
if(n!==o){
26+
console.log(n,o);
27+
}
28+
})
29+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
/**
4+
* @ngdoc directive
5+
* @name uiAccordion.directive:ngAccordionBody
6+
* @description
7+
* # ngAccordionBody
8+
*/
9+
angular.module('uiAccordion')
10+
.directive('ngAccordionBody', function() {
11+
return {
12+
require:'^ngAccordionGroup',
13+
restrict: 'EA',
14+
link: function(scope, element, attrs, accordionCtrl) {
15+
accordionCtrl.setBodyElement(element);
16+
}
17+
};
18+
});

0 commit comments

Comments
 (0)