AngularJs and Atmosphere
var QuotesController = function ($scope, $rootScope) {
$scope.quotes = finance.cache.quotes;
listeners.quote.push(function (quote) {
$scope.$apply(function () {
$scope.quotes[quote.productId] = quote;
});
$rootScope.$broadcast('quote', quote);
});
};
Written by Xiujun Ma
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Angularjs
Authors
Related Tags
#angularjs
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#