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.

  1. what doing wrong setting options on directive markup?
  2. 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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -