Skip to content

Commit

Permalink
export list data
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusmirandaalmeida committed May 7, 2018
1 parent 69f7ad6 commit 2e4b849
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gumga-many-to-one-ng",
"description": "Gumga Many To One Ng",
"version": "1.12.5",
"version": "1.12.6",
"main": "./src/many-to-one.js",
"authors": [
"Gumga Tecnologia da Informação S/A"
Expand Down
4 changes: 4 additions & 0 deletions dist/gumga-many-to-one.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
$scope.$value = value;
});

$scope.$watch('manyToOneCtrl.typeData', function (value) {
$scope.$list = value;
});

var infiniteScroll = function infiniteScroll() {
manyToOneCtrl.infiniteDisabled = true;
manyToOneCtrl.page++;
Expand Down
2 changes: 1 addition & 1 deletion dist/gumga-many-to-one.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
<gumga-many-to-one
value="produto2"
class="gmd striped"
list="options"
search-method="options('name', param, pageSize, page)"
list="pessoas.data"
search-method="pessoas.methods.searchWithPagination('name', param, pageSize, page)"
name="pessoas"
required
field="name"
authorize-add="true"
active-favorite="true"
async="false"
async="true"
on-register-click="teste(param)"
display-info="true">
<match>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gumga-many-to-one-ng",
"version": "1.12.5",
"version": "1.12.6",
"description": "Gumga Many To One",
"main": "./src/many-to-one.js",
"directories": {
Expand Down
4 changes: 4 additions & 0 deletions src/many-to-one.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
$scope.$value = value;
});

$scope.$watch('manyToOneCtrl.typeData', (value) => {
$scope.$list = value;
});

const infiniteScroll = () => {
manyToOneCtrl.infiniteDisabled = true;
manyToOneCtrl.page++;
Expand Down

0 comments on commit 2e4b849

Please sign in to comment.