AngularJS rootScope constant

The Goal

Set value in html and use this value in Angular controller and directive.
Finally, we can insert value from server side, ex, ejs, thymeleaf, erb, etc…
Why is this important?
We sometimes set value in serverside, but, we want to manage data and draw data in angularjs. How to do this?