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

scope function inside options do not work #72

Open
jitbit opened this issue Oct 10, 2016 · 2 comments
Open

scope function inside options do not work #72

jitbit opened this issue Oct 10, 2016 · 2 comments

Comments

@jitbit
Copy link

jitbit commented Oct 10, 2016

$scope.testfunc = function (blah) { return "test"; }

`


{{testfunc(option)}}

`
@bianchimro
Copy link
Member

hi @jitbit
can you provide a codepen or something alike to show the issue?

thanks
Mauro

@Zirand
Copy link

Zirand commented Nov 20, 2016

ng-model="vm.sub.slotDuration"
options-expression="item in vm.ddc.durations"  

Work

<div class="truncate">
{{vm.moment.duration(vm.sub.slotDuration.durationMinutes, 'minutes')| humanizeDuration}}
</div>

vm.moment - momentJS

Do not work

<div class="option">
{{vm.moment.duration(option.durationMinutes, 'minutes')| humanizeDuration}} 
</div>

vm - undefined

What is the point in the library if I can not modify the options list?

how to apply to the options list the filter with icons?

<div class="option">
<i class="icon {{option.id | iconClass:'sp' }}"></i>
{{option.title}} 
</div>

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