allenhwkim / angular-template

NodeJS AngularJS Server-Side Template Engine
34 stars 10 forks source link

Passing objects to data #19

Closed GasparArimany closed 6 years ago

GasparArimany commented 6 years ago

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!!

GasparArimany commented 6 years ago

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

Thanks again