File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -10,26 +10,12 @@ angular.module('angularify.semantic.modal', [])
1010 scope : {
1111 model : '=ngModel'
1212 } ,
13- template : "<div class=\"{{ modal_class } }\">" +
14- "<div class=\"ui test modal transition visible active \" style=\"margin-top: -189px;\" ng-transclude>" +
13+ template : "<div class=\"ui dimmer page\" ng-class=\"{ active: model }\">" +
14+ "<div class=\"ui test modal transition visible\" style=\"margin-top: -189px;\" ng-transclude>" +
1515 "</div>" +
1616 "</div>" ,
1717 link : function ( scope , element , attrs ) {
18- if ( scope . model == true ) {
19- scope . modal_class = 'ui dimmer page active' ;
20- } else {
21- scope . model = false ;
22- scope . modal_class = 'ui dimmer page' ;
23- }
24-
25- scope . $watch ( 'model' , function ( val ) {
26- if ( scope . model == true ) {
27- scope . modal_class = 'ui dimmer page active' ;
28- } else {
29- scope . model = false ;
30- scope . modal_class = 'ui dimmer page' ;
31- }
32- } ) ;
18+
3319 }
3420 }
3521} ) ;
You can’t perform that action at this time.
0 commit comments