Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the ng-click doesn't work #129

Open
yan647 opened this issue Feb 7, 2018 · 2 comments
Open

the ng-click doesn't work #129

yan647 opened this issue Feb 7, 2018 · 2 comments

Comments

@yan647
Copy link

yan647 commented Feb 7, 2018

Drag-and-drop can be implemented, but the ng-click doesn't work; if i delete the drag-and-drop plug-in, the ng-click can work.
the code like this:
js:

$scope.sortable = [{'name':'张春玲','age':28},{'name':'王晰','age':26},{'name':'吴正青','age':66}];
$scope.click=function(){
         console.log('success');
};

html:

<div class="sortable-container" sv-root sv-part="sortable">
        <div ng-repeat="item in sortable" sv-element="opts" class="well" ng-click="click()">
            {{item}}
        </div>
</div>

thank you very much!

@Hoax017
Copy link

Hoax017 commented Nov 8, 2019

I have same problem

<div layout="row" sv-element  ng-repeat="item in list | filter:$ctrl.searchText | orderBy:'order'">
	<span sv-handle><md-icon md-font-icon="material-icons" style="font-size:24px;">swap_vert</md-icon></span>
	<md-checkbox style="width: 50%;" ng-checked="item.selected" ng-click="$ctrl.select(item)">{{item.name}}</md-checkbox>
	<input ng-disabled="!item.selected" style="display: inline-block;"  class="adi-form__control" ng-model="item.renamed" placeholder="{{$root.translate('sft.common.rename')}}" type="text">
</div>

ng-click="$ctrl.select(item)" not called

@Hoax017
Copy link

Hoax017 commented Nov 18, 2019

I solve my probleme,
this directive : sv-part ecrase my $ctrl variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants