angularjs - Angular toast directive seems to ignore options attribute -
working angular, wanted toast messages...
per questions chose angular toast
fire notification toaster in controller angularjs
but when try set location thusly
<toaster-container toaster-options='{ "time-out": 15000, "animation-class": toast-bottom-right, "position-class": toast-bottom-right }'></toaster-container>
it's ignored... unless modify actual source
'position-class': 'toast-bottom-right', // options (see css):// changed manually work around bug ingnored setting - ewb // 'toast-top-full-width', 'toast-bottom-full-width', 'toast-center', // 'toast-top-left', 'toast-top-center', 'toast-top-right', // 'toast-bottom-left', 'toast-bottom-center', 'toast-bottom-right',
at time settings here used, if conflict modified source.
- what doing wrong setting options on directive markup?
- is there better angular toaster implementations that's less buggy? (i haven't messed yet, ngtoast seems better setup , more complete)
i tried bunch of different ways set settings, ignored.. when modified source, started work.
i imagine "toast-bottom-right" string , should therefore surrounded qoutes "", below.
<toaster-container toaster-options='{ "time-out": 15000, "animation-class": "toast-bottom-right", "position-class": "toast-bottom-right" }'></toaster-container>
Comments
Post a Comment