{"action":"created","issue":{"url":"https://api.github.com/repos/ncuillery/angular-breadcrumb/issues/107","labels_url":"https://api.github.com/repos/ncuillery/angular-breadcrumb/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/ncuillery/angular-breadcrumb/issues/107/comments","events_url":"https://api.github.com/repos/ncuillery/angular-breadcrumb/issues/107/events","html_url":"https://github.com/ncuillery/angular-breadcrumb/issues/107","id":106388426,"number":107,"title":"Dynamic  breadcrumb with resolve variable","user":{"login":"Squeezya","id":5501806,"avatar_url":"https://avatars.githubusercontent.com/u/5501806?v=3","gravatar_id":"","url":"https://api.github.com/users/Squeezya","html_url":"https://github.com/Squeezya","followers_url":"https://api.github.com/users/Squeezya/followers","following_url":"https://api.github.com/users/Squeezya/following{/other_user}","gists_url":"https://api.github.com/users/Squeezya/gists{/gist_id}","starred_url":"https://api.github.com/users/Squeezya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Squeezya/subscriptions","organizations_url":"https://api.github.com/users/Squeezya/orgs","repos_url":"https://api.github.com/users/Squeezya/repos","events_url":"https://api.github.com/users/Squeezya/events{/privacy}","received_events_url":"https://api.github.com/users/Squeezya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-14T17:15:27Z","updated_at":"2015-09-16T18:57:19Z","closed_at":null,"body":"hi, im not sure if i am doing this right but... I have this state:\r\n```\r\n.state('main.applications.fase.utilizador.show', {\r\n                url: '/:idUser',\r\n                resolve: {\r\n                    user: ['$state', '$stateParams', 'User',\r\n                        function ($state, $stateParams, User) {\r\n                            return User.getFromDB($stateParams.idUser, {\r\n                                'fromAD': false,\r\n                                'include': 'aluno,aluno.escolas,aluno.cursos,aluno.anosLetivos'\r\n                            }).then(function (user) {\r\n                                return user;\r\n                            })\r\n                        }]\r\n                },\r\n                views: {\r\n                    'fase@main.applications.fase': {\r\n                        templateUrl: 'app/applications/fase/utilizador/show.html',\r\n                        controller: 'app.applications.fase.UtilizadorCtrl',\r\n                        controllerAs: 'vm'\r\n                    }\r\n                },\r\n                ncyBreadcrumb: {\r\n                    label: 'app.fase.perfil.label'\r\n                }\r\n            });\r\n```\r\nAnd I want the label to be the user.id (user is on resolve) is it possible to do this? Use the resolve variables to dynamically do the ncy label?\r\n\r\nAnother thing, if i use controller as vm how can i use scope to make a dynamic label with {{ }} ?"},"comment":{"url":"https://api.github.com/repos/ncuillery/angular-breadcrumb/issues/comments/140842785","html_url":"https://github.com/ncuillery/angular-breadcrumb/issues/107#issuecomment-140842785","issue_url":"https://api.github.com/repos/ncuillery/angular-breadcrumb/issues/107","id":140842785,"user":{"login":"bartrail","id":293793,"avatar_url":"https://avatars.githubusercontent.com/u/293793?v=3","gravatar_id":"","url":"https://api.github.com/users/bartrail","html_url":"https://github.com/bartrail","followers_url":"https://api.github.com/users/bartrail/followers","following_url":"https://api.github.com/users/bartrail/following{/other_user}","gists_url":"https://api.github.com/users/bartrail/gists{/gist_id}","starred_url":"https://api.github.com/users/bartrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartrail/subscriptions","organizations_url":"https://api.github.com/users/bartrail/orgs","repos_url":"https://api.github.com/users/bartrail/repos","events_url":"https://api.github.com/users/bartrail/events{/privacy}","received_events_url":"https://api.github.com/users/bartrail/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T18:57:19Z","updated_at":"2015-09-16T18:57:19Z","body":"+1 - I need custom labels, depending on the received data"}}