SHARE
TWEET

Untitled

a guest Oct 9th, 2016 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .config($stateProvider => {
  2.         $stateProvider.state('active', {
  3.             url: '/active',
  4.             templateUrl: '/static/modules/Book/Books.html',
  5.             controller: 'Books',
  6.             resolve: {
  7.                 books: (Book) => Book.list('active')
  8.             }
  9.         });
  10.     })
  11.  
  12.     .controller('Books', ($scope, books) => {
  13.         $scope.books = books;
  14.     })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top