controllers.js 948 B

1234567891011121314151617181920212223242526272829
  1. angular.module('starter.controllers', [])
  2. .controller('DashCtrl', function($scope, $ocLazyLoad) {
  3. $ocLazyLoad.load('ionic/js/ocTest.js');
  4. })
  5. // .controller('ChatsCtrl', function($scope, Chats) {
  6. // // With the new view caching in Ionic, Controllers are only called
  7. // // when they are recreated or on app start, instead of every page change.
  8. // // To listen for when this page is active (for example, to refresh data),
  9. // // listen for the $ionicView.enter event:
  10. // //
  11. // //$scope.$on('$ionicView.enter', function(e) {
  12. // //});
  13. // $scope.chats = Chats.all();
  14. // $scope.remove = function(chat) {
  15. // Chats.remove(chat);
  16. // };
  17. // })
  18. // .controller('ChatDetailCtrl', function($scope, $stateParams, Chats) {
  19. // $scope.chat = Chats.get($stateParams.chatId);
  20. // })
  21. // .controller('AccountCtrl', function($scope) {
  22. // $scope.settings = {
  23. // enableFriends: true
  24. // };
  25. // });