To be noted: The site that I am talking here is SPA and using angularjs.
Say I have music site. Now there are n number of albums.
- Hindi
- English
- Bhajans
My requirement is if user clicks on Hindi Albums, the title of the page should be set to Hindi, if he clicks on English title should be updated to English and so on.
Plus,how do I change the og tags as well as every albums has social share buttons so I need to update the og tags as well.
If you say that I can set the title while configuring routes,that doesn't works in my scenario.
Scenario
.when('/albums',
{
templateUrl: 'Angular-Templates/albums.html',
controller: 'albumsCtrl',
caseInsensitiveMatch: true,
title: 'Albums'
})
Now albumsCtrl in turns calls db function and fetches the list of availbles albums. Now user will click on any of the fetched albums and title should be updated to the name of the album,
FYI:- I am NOT using angular.ui, but core angular.