Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.index = function(req, res){
- Licmgt.find(function (err, licMgts) {
- if(err) { return handleError(res, err); }
- return res.json(200, licMgts);
- });
- };
- <input class="form-control" typeahead="sourceArray as sourceArray for sourceArray in getOneID($viewValue)"
- ng-model="asyncSelected" type="text">
- <i ng-show="oneid" class="glyphicon glyphicon-refresh" ></i>
- $scope.getOneID = function(val){
- console.log("value is " + val);
- return $http.get('/api/licMgts/',{
- params: {
- OneID:val
- }
- }).then(function(res){
- var oneIDs =[];
- angular.forEach(res.data,function(item){
- oneIDs.push(item.OneID);
- });
- return oneIDs;
- });
- };
- db.collections.find({$text:{$search: /keyword/}})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement