Skip to content

Commit

Permalink
updated the displayField view to be dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
theoomoregbee committed Jul 21, 2016
1 parent d0bfcc8 commit 9a33b72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion angular-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
$scope.selected=data_init($scope.selected,[]);
$scope.allowOutsideDataSet=data_init($scope.allowOutsideDataSet,false);
$scope.sameInput=data_init($scope.sameInput,false);
$scope.default_input={text:''};//default view when a new object is added i.e when
$scope.default_input={};//default view when a new object is added i.e when
$scope.theme=data_init($scope.theme,'default');
$scope.typehead=data_init($scope.typehead,true);//used in displaying type head or not
$scope.displayField=data_init($scope.displayField,'text');//used in displaying which field inside the data set we need
Expand Down
2 changes: 1 addition & 1 deletion example.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<tag-me type="input" data="data" selected="selected" display-field="texti" typehead="true" theme="material" allow-outside-data-set="true" same-input="false">test</tag-me>

<p>Selected: {{selectedi}}</p>
<tag-me type="input" data="data" selected="selectedi" display-field="texti" typehead="false" allow-outside-data-set="true" same-input="false">test</tag-me>
<tag-me type="input" data="data" selected="selectedi" typehead="false" allow-outside-data-set="true" same-input="false">test</tag-me>


</body>
Expand Down

0 comments on commit 9a33b72

Please sign in to comment.