Created
June 10, 2014 16:45
-
-
Save Minasokoni/d6819774822a1ba64586 to your computer and use it in GitHub Desktop.
Update document title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.ArtistSongsRoute = Ember.Route.extend({ | |
(...) | |
afterModel: function(model) { | |
var artistName = this.modelFor('artist').get('name'); | |
$(document).attr('title', artistName + ' songs - Rock & Roll'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment