IBM-Cloud / gp-angular-client

Angular client for Globalization Pipeline on IBM Bluemix
https://www.ng.bluemix.net/docs/services/GlobalizationPipeline/index.html
Apache License 2.0
1 stars 8 forks source link

Nested items not rendering? #2

Open srl295 opened 8 years ago

srl295 commented 8 years ago

In this usage: <label gp-translate="store"><input id='quick-store'></label> <br />

… the nested <input/> element disappears once the translation appears. Probably a <span/> could work here as a workaround.

srl295 commented 8 years ago

So, <label><span gp-translate="store"></span>:<input id='quick-store'></label> <br /> works, but <label><span gp-translate="store" />:<input id='quick-store'></label> <br /> … does NOT. This may be a generic Angular or even HTML thing.

DTownSMR commented 8 years ago

Maybe related to what is talked about in this issue (says it has to do with the browsers parser)

srl295 commented 8 years ago

@DTownSMR Yes - that issue makes sense. Not gp-angular or angular.js’s issue. Could be something to note in the docs (I'm sure I could figure out a PR here…)

Seems like the nested items use should also be at least documented, there's probably not an easy way around it.