<?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 Embed charts in angular5 app ? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Embed-charts-in-angular5-app/m-p/1554356#M10132</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried to create graph in my existing app : is there a simple way to do that ?&lt;/P&gt;&lt;P&gt;I make some tests:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;load requirejs from qlik server in index.html&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;script src="https:/hostname/resources/assets/external/requirejs/require.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;in typescript component :&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;constructor(  ) {
    const config: {} = {
      host: 'domain',
      prefix: '/prefix/',
      port: '80',
      isSecure: window.location.protocol === 'https:',
    };
    try {
      window['require'].config( {
        baseUrl: 'path',
      } );
    } catch (error) {
      window['require'].config( {
        baseUrl: 'path',
      } );
    }
    window['require']( ['js/qlik'], (qlik: {}) =&amp;gt; {
      const app: {} = qlik['openApp']('d09415d9-bc23-4910-8385-9aa00110dc84', config);
    } );
  }&lt;/PRE&gt;&lt;P&gt;In need to use try catch to avoid conflict from js scripts...&amp;nbsp;&lt;BR /&gt;I works, I have my app openned. But why must I do that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 16:39:13 GMT</pubDate>
    <dc:creator>matthi0uw</dc:creator>
    <dc:date>2019-03-08T16:39:13Z</dc:date>
    <item>
      <title>Embed charts in angular5 app ?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Embed-charts-in-angular5-app/m-p/1554356#M10132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried to create graph in my existing app : is there a simple way to do that ?&lt;/P&gt;&lt;P&gt;I make some tests:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;load requirejs from qlik server in index.html&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;script src="https:/hostname/resources/assets/external/requirejs/require.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;in typescript component :&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;constructor(  ) {
    const config: {} = {
      host: 'domain',
      prefix: '/prefix/',
      port: '80',
      isSecure: window.location.protocol === 'https:',
    };
    try {
      window['require'].config( {
        baseUrl: 'path',
      } );
    } catch (error) {
      window['require'].config( {
        baseUrl: 'path',
      } );
    }
    window['require']( ['js/qlik'], (qlik: {}) =&amp;gt; {
      const app: {} = qlik['openApp']('d09415d9-bc23-4910-8385-9aa00110dc84', config);
    } );
  }&lt;/PRE&gt;&lt;P&gt;In need to use try catch to avoid conflict from js scripts...&amp;nbsp;&lt;BR /&gt;I works, I have my app openned. But why must I do that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 16:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Embed-charts-in-angular5-app/m-p/1554356#M10132</guid>
      <dc:creator>matthi0uw</dc:creator>
      <dc:date>2019-03-08T16:39:13Z</dc:date>
    </item>
  </channel>
</rss>

