Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bower version

Getting Started

  1. Install via Bower
bower install angular-slideout-panel --save
  1. Add JS and CSS
<script src="bower_components/angular-slideout-panel/release/js/angular-slideout-panel.min.js"></script>

<link rel="stylesheet" href="bower_components/angular-slideout-panel/release/css/angular-slideout-panel.min.css">
  1. Add Angular Dependency
angular.module('demoApp', [
  'angular-slideout-panel'
]);

Usage

angular.module('demoApp').controller('demoCtrl', [
  '$scope',
  'angularSlideOutPanel',
  function($scope, angularSlideOutPanel) {
    $scope.openPanel = function() {
      angularSlideOutPanel.open({
        template: template,
        openOn: 'left',
        controller: [
          '$scope',
          'user',
          modalController
        ],
        resolve: {
          user: [
            function() {
              return {
                firstName: 'Jerry'
              };
            }
          ]
        }
      });
    };

    function modalController($scope, user) {
      $scope.closePanel = function() {
        $scope.$panelInstance.close('this is from the controller!!');
      };

      $scope.dismissPanel = function() {
        $scope.$panelInstance.dismiss('this is from the controller!!');
      };

      $scope.user = user;
    }
  }
]);

About

Angular Slideout Panel

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages