<section id="demoRemoteDialogSection">
<h2>Section title</h2>
<article>
<h4>Article title</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur mollis et massa at commodo. Cras purus odio, suscipit eu facilisis in, facilisis sit amet tortor. Aenean faucibus blandit magna nec pharetra. Nam in ante felis. Nullam blandit rhoncus massa, sed porttitor turpis molestie in. Duis volutpat, ante ut molestie pulvinar, felis justo dapibus odio, eu euismod ante ligula ut nulla. Quisque sagittis a nisl quis euismod. Proin suscipit quam sit amet egestas ullamcorper.
</p>
<p>
Vestibulum accumsan congue sapien, vel ultrices augue imperdiet eu. Maecenas ut dui sed nisi pulvinar finibus id ac sem. Sed consectetur metus non lacus laoreet eleifend. Mauris ut odio enim. Fusce ut turpis consectetur, sollicitudin arcu quis, porttitor elit. In ultricies, nibh sed euismod imperdiet, est elit lacinia purus, in pharetra libero mauris at tortor. Proin a faucibus felis, eget efficitur lorem. Sed sollicitudin lobortis libero vitae placerat. Mauris interdum sed justo eu ullamcorper. Pellentesque suscipit scelerisque magna fermentum cursus. Vestibulum aliquet commodo eros, sed tristique magna fermentum volutpat.
</p>
</article>
<div ng-controller="DemoRemoteDialogController as RemoteDialogCtrl">
<button type="button" class="btn btn-primary" ng-click="RemoteDialogCtrl.After()">Insert After</button>
<br />
<button type="button" class="btn btn-default" ng-click="RemoteDialogCtrl.Before()">Insert Before</button>
</div>
</section>
<!-- template located in '/lib/modernWeb/templates/Demo/RemoteDialog.html'-->
<div id="{{id}}" ng-show="isOpen">
<h2>Remote Dialog</h2>
<div>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur mollis et massa at commodo. Cras purus odio, suscipit eu facilisis in, facilisis sit amet tortor. Aenean faucibus blandit magna nec pharetra. Nam in ante felis. Nullam blandit rhoncus massa, sed porttitor turpis molestie in. Duis volutpat, ante ut molestie pulvinar, felis justo dapibus odio, eu euismod ante ligula ut nulla. Quisque sagittis a nisl quis euismod. Proin suscipit quam sit amet egestas ullamcorper.
</p>
<div>
<button type="button" ng-click="close()">Close</button>
</div>
</div>
</div>
module Demo {
'use strict';
/* ==========================================================================
DemoDialogInsertedController
========================================================================== */
export class DemoRemoteDialogController extends ModernWeb.Controllers.RemoteDialogController {
static $inject = ['$scope', '$element', 'dialogService', '$templateRequest', '$compile'];
public constructor($scope: ModernWeb.IRemoteDialogScope, $element: JQuery, dialogService: ModernWeb.Services.DialogService, $templateRequest: ng.ITemplateRequestService, $compile: ng.ICompileService) {
super($scope, $element, dialogService, $templateRequest, $compile);
($scope).id = "demoRemoteDialog";
($scope).templateUrl = '/lib/modernWeb/templates/Demo/RemoteDialog.html';
($scope).elementTarget = $("#demoRemoteDialogSection");
}
}
}