Expand my Community achievements bar.

SOLVED

How to reuse one sling model into another in AEM SPA

Avatar

Level 7

I have written one Button SlingModel and I wanted to reuse it into another model. In SPA I can't achieve that. 
I tried with 

@Deleted Account
@getter
private ButtonModel buttonModel;

 

It is returning null. Is this possible?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Correct answer by
Community Advisor