I tried more tweaks without using $onInit and I notice the following when 
doing
console.log('Directive Controller vm', scope.vmd);
Why cant I access virtStats or how can I access that. I tried all kinds of 
things.



On Saturday, June 10, 2017 at 9:11:01 AM UTC-7, Tito wrote:
>
> Ok I will try that, 
>
> The link function is where I am doing bulk of my graphing like the 
> following
>
> https://bl.ocks.org/mbostock/3887051
>
>
>
> On Friday, June 9, 2017 at 8:25:14 PM UTC-7, Sander Elias wrote:
>>
>> Hi Tito,
>>
>> Do this in your dashboard controller. Don't use the link function, it is 
>> of very limited use.
>>
>> function Dashboard() {
>> const vm = this;
>>
>> vm.$onInit = () => {
>> console.log(vm);
>> }
>> }
>>
>>
>> Regards
>> Sander
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to