I'm using angular 1.5 components in my application and here is my structure:
<body ng-app ng-controller="appController as app">
<div ui-view="home">
<home-component>
{{ app.user }}
</home-component>
</div>
</body>
Basically, I am using the ui-router for nested views together with Angular components.
I know that, using the controller as
syntax, you can access the parent controller, however for some reason I cannot. Nothing is being displayed for {{ app.user }}
Now I have read, the the scope of a component is isolated, but I thought that simply means that parent components can't access child components.
If it is fully isolated, how would I go about accessing global data in parent controller?
Thank You!