How to use angular-iscroll - 1 common examples

To help you get started, we’ve selected a few angular-iscroll examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mtr / angular-iscroll / src / examples / app.js View on Github external
function config($urlRouterProvider) {
    // For any unmatched url, redirect to /state1
    $urlRouterProvider.otherwise('/');
}

function MyAppController(iScrollService, coreLayoutService) {
    var vm = this;  // Use 'controller as' syntax.

    vm.iScrollState = iScrollService.state;
    vm.layout = coreLayoutService.state;
}

angular
    .module('myApp', [
        require('ui.router').name,
        require('angular-iscroll').name,
        require('angular-messages').name,
        require('./components/core-layout/core-layout.js').name,
        require('./components/header/header.js').name,
        require('./components/version/version.js').name,
        require('./demos/demos.js').name,
        require('./home/home.js').name
    ])
    .config(config)
    .controller('MyAppController', MyAppController);

module.exports = angular.module('myApp');

angular-iscroll

AngularJS module that enables iScroll 5 functionality, wrapping it in an easy-to-use directive.

MIT
Latest version published 12 months ago

Package Health Score

56 / 100
Full package analysis

Popular angular-iscroll functions