<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: trajkamal</title>
    <description>The latest articles on DEV Community by trajkamal (@trajkamal).</description>
    <link>https://dev.to/trajkamal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F443591%2F40a0f1cf-93d1-4cd7-9869-b46d6a8c0e20.png</url>
      <title>DEV Community: trajkamal</title>
      <link>https://dev.to/trajkamal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/trajkamal"/>
    <language>en</language>
    <item>
      <title>Angular 10 - Need help!!!!</title>
      <dc:creator>trajkamal</dc:creator>
      <pubDate>Thu, 06 Aug 2020 05:26:41 +0000</pubDate>
      <link>https://dev.to/trajkamal/need-help-4kal</link>
      <guid>https://dev.to/trajkamal/need-help-4kal</guid>
      <description>&lt;p&gt;I am creating multiple project as library in angular 10. In root app of angular 10 i can lazy-load the library as a single app.&lt;/p&gt;

&lt;p&gt;But i want to use this angular 10 library in angular8 root app.&lt;/p&gt;

&lt;p&gt;Can any one tell is there any guild lines for implementing in Ag8 app.  &lt;/p&gt;

</description>
      <category>discuss</category>
      <category>angular</category>
      <category>webdev</category>
      <category>help</category>
    </item>
    <item>
      <title>library based Micro-Frontends set-up in Angular</title>
      <dc:creator>trajkamal</dc:creator>
      <pubDate>Thu, 30 Jul 2020 10:05:26 +0000</pubDate>
      <link>https://dev.to/trajkamal/micro-frontend-with-angular-10-2ekc</link>
      <guid>https://dev.to/trajkamal/micro-frontend-with-angular-10-2ekc</guid>
      <description>&lt;p&gt;Angular 10 Micro-FrontEnd Tutorial Steps&lt;/p&gt;

&lt;p&gt;These are the steps:&lt;br&gt;
Step 1 - Installing Angular CLI 10&lt;br&gt;
Step 2 - Initializing our Project&lt;br&gt;
Step 3 - Understanding Micro-FrontEnd&lt;br&gt;
Step 4 - Creating Angular 10 Library's&lt;/p&gt;

&lt;p&gt;Will start with creating a A10 App....&lt;br&gt;
Step 1 - Installing Angular CLI 10&lt;/p&gt;

&lt;p&gt;Open a new terminal on Ubuntu/macOS or a command prompt on Windows and run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 2 - Initializing our Angular 10 Project&lt;/p&gt;

&lt;p&gt;If you have installed Angular CLI v10 in your machine, let's use it to initialize a new project. Head back to your terminal or command prompt and simply run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng new master-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before generating your project, the CLI will prompt you if you would like to add routing to your project - You can answer No because we'll not be using the router in this example. For the style-sheets format, let's go with CSS.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd ./master-app
ng serve
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server will be running at the &lt;a href="http://localhost:4200"&gt;http://localhost:4200&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now you successfully created you Angular 10 application. Now will step into developing the micro-frontend part.&lt;/p&gt;

&lt;p&gt;**Those who know how to create library and add it to you application can skip this part.&lt;/p&gt;

&lt;p&gt;Here we have the list of commend you need to run for creating and adding a library to your angular 10 application.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng new lib --create-application=false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Above line will create Angular 10 application without src&amp;amp;e2e etc.. After this run the below comment to create library inside you &lt;em&gt;lib&lt;/em&gt; folder...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng generate library sharedlib 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you successfully created the Angular 10 library now run the below comment.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng build sharedlib
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;once build is done you will get the following structure...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjxfwigltgqheujbp57dr.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjxfwigltgqheujbp57dr.PNG" alt="Alt Text" width="233" height="307"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;then go to you *master-app and install the newly created sharedlib to install run the following commend.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install C:\micro-ui\lib\dist\sharedlib
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you install the angular 10 library, In you master application &lt;br&gt;
&lt;strong&gt;package.json&lt;/strong&gt; will get updated as below.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fegvnlp9cruyfvh1h9gew.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fegvnlp9cruyfvh1h9gew.PNG" alt="Alt Text" width="333" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If all the above steps are done then now you are ready with a micro-frontend app. &lt;/p&gt;

&lt;p&gt;Now you can import the Angular 10 library in to your master application as below.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;import { SharedlibModule } from 'sharedlib';&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Please do comment what you want to know in micro-frontend...&lt;/p&gt;

</description>
      <category>angular</category>
      <category>microfrontend</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
