Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = angular.module('smsApp', []) ;
- app.controller('mainController', function($scope, $http){
- var getMsgList = function() {
- $http.get('cfc/getSMS.cfc?method=getData').success(function(data,status){
- $scope.messages = data.DATA ;
- }) ;
- }
- var liveUpdate = setInterval(function(){
- $scope.$apply(getMsgList)
- },5000);
- getMsgList() ;
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement