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

Unable to use multiple fancy select in a template #11

Open
adeelzx opened this issue Jan 25, 2016 · 2 comments
Open

Unable to use multiple fancy select in a template #11

adeelzx opened this issue Jan 25, 2016 · 2 comments

Comments

@adeelzx
Copy link

adeelzx commented Jan 25, 2016

I am unable to use multiple select in a same template. While changing value for one, its affecting another one also.

@nickbar06
Copy link

Did you fix this problem? And if you did, how so?

@nickbar06
Copy link

For @adeelzx or for anyone that thinks it's not possible!

Actually just solved it, I created different directives for every select that i needed, inside the directive, i changed the scope.text variable to different variations

for example:

Responsible department directive had scope.textResponsible
Originating department directive had scope.textOrigin
then i created different fancy-select.html pages that bring in it's respective text variable

<ion-list >
    <ion-item class="item-text-wrap" ng-click="showItems($event)" style='min-height: 50px;' >
    {{textOrigin}}<span class="ion-chevron-right" style="float:right"></span>
    </ion-item>
</ion-list>

inside the view i had textOrigin as an option

<originating-dept-select ng-model="oDepts" header-text="Originating Departments" allow-empty='false' value="val.multiple" textOrigin="responsibleDeptlbl" items="originatingDepts" multi-select="true">

</originating-dept-select>

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