javascript - Is replaceable attribute obsolete in aurelia 1.0? -


i under impression slot superseded replaceable, i've been told replaceable reintroduced in 1.0 release, true?

replaceable still exists due use-case isn't covered slots in shadow dom v1 spec:

the new shadow dom v1 spec has support slot "fallback content". result, our replaceable attribute no longer needed , has been removed in favor of slot fallbacks. however, slots not solve problem of replacing template used repeat, if or other template controller. so, still support placing part attribute on template controller's element , overriding using replace-part in element's content.

http://blog.durandal.io/2016/06/08/getting-prepared-for-aurelia-1-0-0-rc/


Comments