ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

Controller 'uiSelect', required by directive 'uiSelectSort', can't be found!

Open koolshams opened this issue 11 years ago • 5 comments

Nice work guys. It saved lot of time.

I got an annoying error in console when i used it with angular-strap. I used all latest codes.

http://plnkr.co/edit/kWzwR3gxD19XQCoifapp?p=preview

Steps to reproduce the error. Open above link. First click on 'Open window with none selected' link, click on cancel to close the modal. After that click on 'Open window with some selected users', you can see this error in console.

I have used code from examples. Please someone help me with this.

Thanks, Shamseer

koolshams avatar Nov 05 '15 08:11 koolshams

Looks like there is a watchCollection on ng-model in ui-select which is not removed when select is destroyed. as i am using same scope for modal screens, so scope is not destroyed when modal window is closed. Looks like i need to use new scope for each modal. See this plunker which create new scope for each modal.

http://plnkr.co/edit/gkueBKeagIs6fYNlXHnc?p=preview

I am closing this issue, It may help some one else who faces same issue.

koolshams avatar Nov 06 '15 07:11 koolshams

Another solution I found was to manually remove the watchers from the scope when cleaning up:

delete scope.$$watchers

paulevmo avatar Feb 09 '16 21:02 paulevmo

We also encounter this when changing state in ui-router.

pior avatar Mar 16 '16 15:03 pior

Same error with ui-view

Hi, but what to do if I'm not using $modal service? here this error appears when child state is been opened

(just click on go to sub link and see console output) https://embed.plnkr.co/yjCvvyIpGgwCUljy214X/

AnatoliyLitinskiy avatar Mar 22 '16 09:03 AnatoliyLitinskiy

I've also got the same issue, when using a multiple select using XEditable. Any suggestions on how to fix this? How do I create a new scope for every XEditable edit? Or where do I delete the watches?

claravanstaden avatar May 07 '16 17:05 claravanstaden