How to use angular-messages - 1 common examples

To help you get started, we’ve selected a few angular-messages 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
// 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-messages

AngularJS module that provides enhanced support for displaying messages within templates

MIT
Latest version published 3 years ago

Package Health Score

64 / 100
Full package analysis

Popular angular-messages functions