meteor, meteor & angular gurus.
i new angular-meteor , facing following problem. perform search using
$scope.contacts = $meteor.collection(contacts,false).subscribe('searchstring', $scope.searchstring); or
$scope.contacts = $scope.$meteorcollection(contacts,false).subscribe('searchstring', $scope.searchstring); and $scope.contacts not refresh. seems holds old collection (speculation). can see data being returned mongo server , fine.if iterate through collection using $meteor.foreach can see data there.
but once first search result assigned $scope.contacts wont refresh more. having feeling $scope.contacts keeps own "collection" , append new rows/docs coming $meteor.collection.
any appreciated.
thanks all,
sotiris
it's kind of weird. understanding, subscribe linking data pipline, collections representative of data.
$scope.meteorsubscribe('contacts'); $scope.contacts = $scope.$meteorcollection(function (){ contacts.find({somefield: $scope.searchstring}) } you might want this?
Comments
Post a Comment