I am implementing meta tags in angularjs using this code :
.state('home', {
url: "/home/",
metaTags: {
title: 'abc',
description: 'xyz',
keywords: 'xyz',
properties: {
'og:title': abc'
}
},
views : {
"" : {
templateUrl:"/home/home.html",
controller: 'homeCtrl',
controllerAs:'vm',
}
},
resolve: {
loadMyCtrl: ['$ocLazyLoad', function($ocLazyLoad) {
return $ocLazyLoad.load('home'); // Resolve promise and load before view
}]
}
})
It is working fine because I fixed the meta tags but, I want to send dynamic data from a controller to mainApp.
In easy way , I want to send dynamic data from homeCtrl to mainApp.
Is there any way to do this in angularjs?
Thanks in advance.