i'm building blog in angular , using ui-router handle states. when resolve article using resolve object, want able dynamically change <title> tag. done populating data object element called pagetitle.
how pass in dynamic data resolve key data key?
plunkr @ http://plnkr.co/edit/n8bhmhfktumxvhytnsca?p=info
i have managed before know it's possible, don't have access project more. appreciated.
thanks
do want resolved keys in data? can resolved keys in controller
resolve: { article: function () { /* go db , article */ return { gettitle: function () { return "article 1"; }, getcontent: function () { return "hello, content"; } }; } }, controller: "ctrl" and in controller can inject article
app.controller('ctrl', function($scope, article){...});
Comments
Post a Comment