ashish-chopra / angular-gauge

A reusable gauge directive for Angular 1.x apps and dashboards
https://ashish-chopra.github.io/angular-gauge/
MIT License
95 stars 36 forks source link

How can I use angular-gauge directive inside another directive? #55

Open marlon-assef opened 6 years ago

marlon-assef commented 6 years ago

Hi, @ashish-chopra .

How can I use the <ng-gauge> inside another directive? Our application uses widgets to create a page. Each widget is a directive, for instance:

<html>
  <body>
      <directive-one></directive-one>
      <directive-two></directive-two>
  </body>
</html>

I want to use the <ng-gauge> inside the <directive-two>, but it is not working. the ng-gauge component does not get the correct options configuration and end up failing to render. Maybe I miss a configuration.

Can ng-gauge be used inside another directive? Can you help me please?

Thanks a lot.