I am trying to use the Dojo gauges within my angularjs app; I understand that Dojo itself is a framework that offers MVC (like angularjs) but at this point, I have an angularjs app and I would like to use existing widgets from other libraries using angularjs directives.
I keep getting this error when I run my simple widget example - Uncaught TypeError: undefined is not a function - here is a plunker that shows the issue
http://plnkr.co/edit/Yzkp5r?p=preview
I am not sure where I am going wrong. I am running it inside dom ready and when the error happens, it looks like one my div element does not have the prototype set to HTMLDivElement which is weird. I am able to create the same gauge in the same fashion from the chrome console which is suggesting that I am doing something early or something is not ready at the time when my Dojo widget is being created. Just to be more specific, the error is coming from
var glossyCircular = new GlossyCircularGauge(
{
background: [255, 255, 255, 0],
title: 'Value',
id: gaugeId,
width: 150,
height: 150
},parent);
Any help is appreciated.
Thank you