Forum Discussion

MikeAinOz's avatar
MikeAinOz
Helper V
7 years ago
Solved

Using AngularJS in Custom Visual

I'm trying out AngularJS in a custom visual. I've got the  AngularJS modules library in and building and not I'm trying to build a test app.   I've created some html in the  constructor:   ...
  • v-viig's avatar
    v-viig
    7 years ago

    Your code above is almost correct. You can also learn how to pass props in React Doc.

     

    ReactDOM.render(React.createElement(App, {options}), this.element);

     

     

    You should also add options as props into App.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]