Forum Discussion
Using AngularJS in Custom Visual
- 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
Ignat, I can't figure out how to get the dataView into the React Component.
I'm doing this is in Update:
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
- MikeAinOz7 years agoHelper V
I'm having some trouble getting that working. I've run out of time to work on it, but I was thinking of getting a programmer to get the example working for me. Is it worth doing that or will there be something else coming along?
- v-viig7 years agoCommunity Champion
We have not plans to implement Angular/React sample for Power BI but it's on our backlog (no ETA).
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- MikeAinOz7 years agoHelper V
I found using Chrome to debug I culd see inside the object more easily using console.log. The props were being passed just fine, it was a user problem :-(