How can we call a function with parameters in emblem's conditional statement. Like I have a function:
priorExist: (prior) ->
@get("priors").findBy("condition", prior)
But I get an error when I call it in emblem like this
if priorExist(name)
Is there any way to call above function in emblem?
Above Functionality can be achieved by using Ember Components Like this
Component if-existing-prior-component.coffee/js
if-existing-prior Template
Then we can use above component for comparisons in our emblem like this:
Where
priors = @get("priors")