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

Is it possible to reference my own html partials?

Open robson-gilli opened this issue 12 years ago • 1 comments

Hi.

I have a situation where I need to have three ui.selects on the same page, all using bootstrap. The issue is that the layout of those components are completely different from each other.

Is it possible to have external partials and reference them directly through a 'templateUrl' attribute on the directive, or something similar?

robson-gilli avatar Nov 28 '14 17:11 robson-gilli

For future reference this can be done specifying a custom value for the theme attribute and using it to prefix templates that are store in the $templateCache

A relevant line: https://github.com/angular-ui/ui-select/blob/161cff56c0ba9d4a86ae213056dd78ba18296036/src/uiSelectDirective.js#L8

user378230 avatar Mar 16 '16 16:03 user378230