I have array which is displayed using ngRepeater but with this directive I\'m using ngInit directive which execute function which should return object to be displayed. Every
I've found out that you can just replace ng-init with angular expression {{}} in a hidden block:
ng-init
{{}}
Add {{displayedQuestion=SetPreview(phone)}} {{displayedQuestion.name}} {{displayedQuestion.snippet}}
{{displayedQuestion.snippet}}