ng2-semantic-ui search/select with ajax lookup
The Issue
When using ng2-semantic-ui select or search components, the lookup function cannot find the service and always returns 0 results.
When using ng2-semantic-ui select or search components, the lookup function cannot find the service and always returns 0 results.
Using ngx-translate inside the title tag with parameters. This can be applied to any angular pipe that takes parameters. The format is weird, so I’m leaving it here for future reference.
<i class="fa fa-pencil" aria-hidden="true"
title="{{'Edit x viability filter' | translate:{value: name} }}"
(click)="openViabilityFilter(viabilityFilter)"></i>
This is an easier way of doing the translations than the ngx-translate docs suggest, shown below:
This is how you do it with the pipe:
<div>{{ 'HELLO' | translate:param }}</div>
And in your component define param like this:
param = {value: 'world'};
I spent quite a bit of time trying to figure out why my angular service did not throw an http error correctly to all components watching it. Some times it would work and some times it would not. This is easier to see by looking at some code.