File manager - Edit - /usr/local/cpanel/3rdparty/share/angular-ui-scroll/1.6.1/demo/adapterOnController/adapterOnController.html
Back
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Adapter On Controller</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js"></script> <script src="../../dist/ui-scroll.js"></script> <script src="adapterOnController.js"></script> <link rel="stylesheet" href="../css/style.css" type="text/css"/> </head> <body ng-controller="mainController" ng-app="application"> <div class="cont cont-global"> <a class="back" href="../index.html">browse other examples</a> <h1 class="page-header page-header-exapmle">Adapter On Controller</h1> <div class="description"> There may be some nested scopes between the ui-scroll and the controller where you want the adapter object to be injected. As it follows from the documentation, <em>adapter="expression on controller"</em> format can be used to explicitly specify the scope associated with the specified controller as the target scope for the injection. <div class="code"> <pre><div ui-scroll="item in datasource" adapter="adapter on mainController">{{item}<!---->}</div></pre> </div> In this sample we have ng-if wrapper over the viewport which causes an intermediate scope. "Is loading" will not work without specifying the controller through the "on controller" syntax . </div> <div class="actions" ng-init="reloadIndex = 100"> Is loading: {{adapter.isLoading}} </div> <div ng-if="delay" class="viewport" id="viewport-serviceDatasource" ui-scroll-viewport> <div class="item" ui-scroll="item in datasource" adapter="adapter on mainController">{{item}}</div> </div> </div> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings