Skip to content

Instantly share code, notes, and snippets.

@Shu-Ji
Created July 7, 2015 07:35
Show Gist options
  • Save Shu-Ji/0a34c8d147870ffa88a5 to your computer and use it in GitHub Desktop.
Save Shu-Ji/0a34c8d147870ffa88a5 to your computer and use it in GitHub Desktop.
TodoListCtrl = ['$scope', '$localStorage', '$http', 'DTOptionsBuilder',
($scope, $ls, $http, DTOptionsBuilder) ->
$scope.dt_options = DTOptionsBuilder
.newOptions()
.withPaginationType('full_numbers')
.withDisplayLength(8)
]
window
.bootstrap_angular('datatables') # if more: window.bootstrap_angular('datatables', 'toastr', ...)
.controller 'TodoListCtrl', TodoListCtrl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment