allenhwkim/angular-template

Passing objects to data

GasparArimany opened this issue · 1 comments

So, as the title says, i'm trying to pass an object to my data object on my htmlTemplate function. I'm doing something like this htmlTemplate('./templates/template.html', scope, { prefix: 'ng' }); where "scope" is an object which contains another object, "client" which has the client's data (e.g. name, address, etc...), so then when i try to use those values in my "template.html" as <p class="card-text">{{client.name}}</p> it does nothing. I know this is not necessarily a bug neither and issue, but it is a feature that would really help a lot.

Thank you for your time!!

So, this was my mistake, i'm closing the issue. i'm so very sorry about this.

Thanks again