moved modal into global controller scope
This commit is contained in:
@@ -102,10 +102,15 @@
|
||||
<div style="margin-top: 2em; text-align: center;">
|
||||
<span ng-repeat="user in accountUsers">{{user.name}} {{user.outstandings | number : 2}} €<br/></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-controller="ModalDemoCtrl">
|
||||
<script type="text/ng-template" id="myModalContent.html">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<button type="button" class="btn btn-default" ng-click="openDetails()">Open me!</button>
|
||||
<div ng-show="selected">Selection from a modal: {{ selected }}</div>
|
||||
|
||||
<script type="text/ng-template" id="detailsTemplate.html">
|
||||
<div class="modal-header">
|
||||
<h3 class="modal-title">I'm a modal!</h3>
|
||||
</div>
|
||||
@@ -122,17 +127,10 @@
|
||||
<button class="btn btn-warning" type="button" ng-click="cancel()">Cancel</button>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<button type="button" class="btn btn-default" ng-click="open()">Open me!</button>
|
||||
<button type="button" class="btn btn-default" ng-click="open('lg')">Large modal</button>
|
||||
<button type="button" class="btn btn-default" ng-click="open('sm')">Small modal</button>
|
||||
<button type="button" class="btn btn-default" ng-click="toggleAnimation()">Toggle Animation ({{ animationsEnabled }})</button>
|
||||
<div ng-show="selected">Selection from a modal: {{ selected }}</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- div>
|
||||
<pre style="font-size: 75%; color: darkgray;">{{account | json}}</pre>
|
||||
</div -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user