johnpapa / ng-demos

variety of angular demos
MIT License
1.7k stars 961 forks source link

Binding in config.route.js #55

Open AlexSanzharevskyy opened 9 years ago

AlexSanzharevskyy commented 9 years ago

Hi There! First of all, thanks a lot for your great examples!!!

I have one question: if i want use data binding in routes file? for example:


config: { templateUrl: 'app/account/views/account.html', settings: { nav: 4, content: {{ session.user.username }}, settings: {}


How should i compile it? Thank you!

francisrod01 commented 7 years ago

You can make a service call and get the user session. Binding of data is performed in HTML. Please study the AngularJs style-guide.