<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using AngularJS in Custom Visual in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/527125#M1405</link>
    <description>&lt;P&gt;Hey Ignat thanks for that, it's an interesting alternative, I'll let you know how it works out (you might get another question for react &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 03:23:24 GMT</pubDate>
    <dc:creator>MikeAinOz</dc:creator>
    <dc:date>2018-09-27T03:23:24Z</dc:date>
    <item>
      <title>Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/525857#M1399</link>
      <description>&lt;P&gt;I'm trying out AngularJS in a custom visual. I've got the&amp;nbsp; AngularJS modules library in and building and not I'm trying to build a test app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created some html in the&amp;nbsp; constructor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                const ang_app: HTMLElement = document.createElement("div");
                ang_app.setAttribute('ng-app',"myapp");
                ang_app.setAttribute('ng-controller',"tableController");
                const ang_tr: HTMLElement = document.createElement("tr");
                ang_tr.setAttribute('ng-repeat',"row in dataSet");
                ang_app.appendChild(ang_tr);
                const ang_td: HTMLElement = document.createElement("td");
                ang_td.appendChild(document.createTextNode("{{row[0]}}"));
                ang_app.appendChild(ang_td);
                this.target.appendChild(ang_app);&lt;/PRE&gt;&lt;P&gt;and checked the resulting HTML, which looks OK:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div ng-app="myapp" ng-controller="tableController"&amp;gt;
&amp;lt;tr ng-repeat="row in dataSet"&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;td&amp;gt;{{row[0]}}&amp;lt;/td&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using angular in the Update method like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;           var app = ng.module("myapp",[]);
            app.controller("tableController", ['$scope', function ($scope) {
                $scope.dataSet = options.dataViews[0];
            }],
            );&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it looks fairly close, but I'm obviously missing something. Does any one have a suggestion or is there sample code I can look at?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting this error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SCRIPT5022: SCRIPT5022: [$injector:modulerr] Failed to instantiate module myapp due to: Error: [$injector:nomod] Module 'myapp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. &lt;A href="https://errors.angularjs.org/1.7.4/$injector/modulerr?p0=myapp&amp;amp;p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'myapp'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.7.4%2F%24injector%2Fnomod%3Fp0%3Dmyapp%0A%20%20%20at%20Anonymous%20function%20(Unknown%20script%20code%3A2806%3A11)%0A%20%20%20at%20ensure%20(Unknown%20script%20code%3A2727%3A5)%0A%20%20%20at%20module%20(Unknown%20script%20code%3A2804%3A7)%0A%20%20%20at%20Anonymous%20function%20(Unknown%20script%20code%3A5533%3A11)%0A%20%20%20at%20forEach%20(Unknown%20script%20cod" target="_blank"&gt;https://errors.angularjs.org/1.7.4/$injector/modulerr?p0=myapp&amp;amp;p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'myapp'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttps%3A%2F%2Ferrors.angularjs.org%2F1.7.4%2F%24injector%2Fnomod%3Fp0%3Dmyapp%0A%20%20%20at%20Anonymous%20function%20(Unknown%20script%20code%3A2806%3A11)%0A%20%20%20at%20ensure%20(Unknown%20script%20code%3A2727%3A5)%0A%20%20%20at%20module%20(Unknown%20script%20code%3A2804%3A7)%0A%20%20%20at%20Anonymous%20function%20(Unknown%20script%20code%3A5533%3A11)%0A%20%20%20at%20forEach%20(Unknown%20script%20cod&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 04:52:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/525857#M1399</guid>
      <dc:creator>MikeAinOz</dc:creator>
      <dc:date>2018-09-26T04:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/525997#M1401</link>
      <description>&lt;P&gt;Have not tried Angular but we have small sample for &lt;A href="https://github.com/ignatvilesov/powerbi-visuals-react-sample" target="_self"&gt;React&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 06:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/525997#M1401</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-09-26T06:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/527125#M1405</link>
      <description>&lt;P&gt;Hey Ignat thanks for that, it's an interesting alternative, I'll let you know how it works out (you might get another question for react &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 03:23:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/527125#M1405</guid>
      <dc:creator>MikeAinOz</dc:creator>
      <dc:date>2018-09-27T03:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/527331#M1408</link>
      <description>&lt;P&gt;Happy to help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current samplkes does not look good since it does not use modern ES2015 features such as&amp;nbsp;modules but we're working on webpack based pbiviz to bring new features to developers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 07:08:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/527331#M1408</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-09-27T07:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/528216#M1412</link>
      <description>&lt;P&gt;Ignat, I can't figure out how to get the dataView into the React Component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing this is in Update:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ReactDOM&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;render&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;React&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;createElement&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;App&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;options&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;element&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;but what do I do in the App.tsx? I've managed to pass a test string, but how to pass the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;VisualUpdateOptions &lt;/SPAN&gt;&lt;SPAN&gt;object?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Having had a play with React, it looks like a good way to create Custom Visuals&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Sep 2018 00:12:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/528216#M1412</guid>
      <dc:creator>MikeAinOz</dc:creator>
      <dc:date>2018-09-28T00:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/528529#M1415</link>
      <description>&lt;P&gt;Your code above is almost correct. You can also learn how to pass props in &lt;A href="https://reactjs.org/docs/react-api.html#createelement" target="_self"&gt;React Doc&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ReactDOM.render(React.createElement(App, {options}), this.element);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should also add&amp;nbsp;&lt;STRONG&gt;options&lt;/STRONG&gt; as props into &lt;STRONG&gt;App.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 07:23:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/528529#M1415</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-09-28T07:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/529964#M1420</link>
      <description>&lt;P&gt;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?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 05:54:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/529964#M1420</guid>
      <dc:creator>MikeAinOz</dc:creator>
      <dc:date>2018-10-01T05:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/530048#M1423</link>
      <description>&lt;P&gt;We have not plans to implement Angular/React sample for Power BI but it's on our backlog (no ETA).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 07:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/530048#M1423</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-10-01T07:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/537918#M1462</link>
      <description>&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 00:04:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/537918#M1462</guid>
      <dc:creator>MikeAinOz</dc:creator>
      <dc:date>2018-10-10T00:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using AngularJS in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/539494#M1470</link>
      <description>&lt;P&gt;Awesome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 07:40:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Using-AngularJS-in-Custom-Visual/m-p/539494#M1470</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-10-11T07:40:49Z</dc:date>
    </item>
  </channel>
</rss>

