Change $scope.$apply calls to pass in function, so code run inside Angular context
Change $scope.$apply calls to pass in function, so code run inside Angular context

emgeee/mean-stack-SFHTML5,emgeee/mean-stack-SFHTML5