TIMFUNNY
TIMFUNNY

Reputation: 383

Is there a way to send thymeleaf's data to angular?

I know this way could get the data.

th:attr="ng-click='method(\''+${ans.numbers}+'\',true);

But I do not want this click event.I just want this data when the page init.

Upvotes: 0

Views: 683

Answers (1)

Wasiq Muhammad
Wasiq Muhammad

Reputation: 3118

Try this

th:attr="ng-init='method(\''+${ans.numbers}+'\',true);

Upvotes: 1

Related Questions