<?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>Forem: venkateshpensalwar</title>
    <description>The latest articles on Forem by venkateshpensalwar (@venkateshpensalwar).</description>
    <link>https://forem.com/venkateshpensalwar</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%2F533079%2F8d46a226-99d7-49b9-afe7-de87cc686aaa.jpeg</url>
      <title>Forem: venkateshpensalwar</title>
      <link>https://forem.com/venkateshpensalwar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/venkateshpensalwar"/>
    <language>en</language>
    <item>
      <title>Create MultiProject Angular Application🔥</title>
      <dc:creator>venkateshpensalwar</dc:creator>
      <pubDate>Sat, 10 Feb 2024 09:46:49 +0000</pubDate>
      <link>https://forem.com/venkateshpensalwar/create-multiproject-angular-application-18h0</link>
      <guid>https://forem.com/venkateshpensalwar/create-multiproject-angular-application-18h0</guid>
      <description>&lt;p&gt;In this post, we will learn how to create and organize multiple Angular applications in one project or workspace. This is useful for enterprises that use a single repository and global configuration for all Angular projects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You need to have Angular CLI installed. You can check the version by running &lt;code&gt;ng --version&lt;/code&gt; in your terminal. If you don’t have it, you can install it by running &lt;code&gt;npm install -g @angular/cli&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a workspace with the following option. This will create a workspace with all the workspace-wide configuration files, but no root-level application.
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;/div&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%2Fuploads%2Farticles%2Fxmcjhe2u6cz40ocjlqmx.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%2Fuploads%2Farticles%2Fxmcjhe2u6cz40ocjlqmx.png" alt="create Project" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use the following command to add as many applications as you want.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng generate application Project1
ng generate application Project2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fuploads%2Farticles%2Fkcgohuk8otumlnk2gbt0.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%2Fuploads%2Farticles%2Fkcgohuk8otumlnk2gbt0.png" alt="Project 1" width="800" height="450"&gt;&lt;/a&gt;&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%2Fuploads%2Farticles%2Fwji6ma25jciyangeknrg.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%2Fuploads%2Farticles%2Fwji6ma25jciyangeknrg.png" alt="Project 2" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To run an application, use &lt;code&gt;ng serve&lt;/code&gt; with the application name or the &lt;code&gt;--project&lt;/code&gt; flag.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng serve Project1
# or
ng serve --project="Project1"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fuploads%2Farticles%2Fcm4ffi38g0chhw5nd2ab.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%2Fuploads%2Farticles%2Fcm4ffi38g0chhw5nd2ab.png" alt="2-Applications" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To build a production application, use &lt;code&gt;ng build ProjectName&lt;/code&gt; with the &lt;code&gt;--configuration=production&lt;/code&gt; flag. The build output will be stored in the dist folder with the application name.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng build Project1 --configuration=production
ng build Project2 --configuration=production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fuploads%2Farticles%2Ffc7i2w6ixv4u7fgo64ug.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%2Fuploads%2Farticles%2Ffc7i2w6ixv4u7fgo64ug.png" alt="Production builds" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Folder Structure&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The folder structure of the workspace is as follows:&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%2Fuploads%2Farticles%2Fye5xc9y6n98t86cqmfyu.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%2Fuploads%2Farticles%2Fye5xc9y6n98t86cqmfyu.png" alt="Folder structure" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Benefits&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are several benefits of having multiple Angular applications in one project:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You do not have to run the time-consuming npm install for every application.&lt;/li&gt;
&lt;li&gt;The node_modules folder is shared with all the other applications, saving disk space and time.&lt;/li&gt;
&lt;li&gt;All the applications can be updated to the next version easily with a single command.&lt;/li&gt;
&lt;li&gt;You can use a single source-control repository (such as git) for all the applications.&lt;/li&gt;
&lt;li&gt;You can create and use libraries that contain shared components, services, directives, pipes, etc. across the applications.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this post, I have shown you how to create and organize multiple Angular applications in one project or workspace. This is a useful technique for enterprises that use a single repository and global configuration for all Angular projects. It also supports library development and code reuse. I hope you found this post helpful and learned something new. If you have any questions, comments, or suggestions, please feel free to share them below. Thank you for reading!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>angular</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Add BULMA in Angular</title>
      <dc:creator>venkateshpensalwar</dc:creator>
      <pubDate>Sat, 03 Feb 2024 13:30:00 +0000</pubDate>
      <link>https://forem.com/venkateshpensalwar/add-bulma-in-angular-4715</link>
      <guid>https://forem.com/venkateshpensalwar/add-bulma-in-angular-4715</guid>
      <description>&lt;p&gt;Bulma is an open-source framework that offers a collection of pre-built front-end components. These components can be seamlessly combined to create responsive web interfaces. Best of all, Bulma is free to use! and boasts over 1.1M monthly downloads.😊&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Visit BULMA's official website &lt;a href="https://bulma.io/"&gt;https://bulma.io/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;On this website, you will see the npm command to install this CSS framework&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install bulma
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;After installing this package go into your &lt;code&gt;angular.json&lt;/code&gt; file and add these lines to this object.&lt;/li&gt;
&lt;/ul&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%2Fuploads%2Farticles%2Fh0l2givxm5jp6hzbg2ij.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%2Fuploads%2Farticles%2Fh0l2givxm5jp6hzbg2ij.png" alt="angular json" width="800" height="417"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"styles": [
            "src/styles.scss",
            "node_modules/bulma/css/bulma.min.css"
          ],
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Run your angular application.
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Open the app.component.html file remove all default HTML and change the HTML with the following
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="container m-2"&amp;gt;
    &amp;lt;div class="buttons"&amp;gt;
        &amp;lt;button class="button is-primary"&amp;gt;Primary&amp;lt;/button&amp;gt;
        &amp;lt;button class="button is-link"&amp;gt;Link&amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;

    &amp;lt;div class="buttons"&amp;gt;
        &amp;lt;button class="button is-info"&amp;gt;Info&amp;lt;/button&amp;gt;
        &amp;lt;button class="button is-success"&amp;gt;Success&amp;lt;/button&amp;gt;
        &amp;lt;button class="button is-warning"&amp;gt;Warning&amp;lt;/button&amp;gt;
        &amp;lt;button class="button is-danger"&amp;gt;Danger&amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="notification is-success"&amp;gt;
        &amp;lt;button class="delete"&amp;gt;&amp;lt;/button&amp;gt;
        Primar lorem ipsum dolor sit amet, consectetur
        adipiscing elit lorem ipsum dolor. &amp;lt;strong&amp;gt;Pellentesque risus mi&amp;lt;/strong&amp;gt;, tempus quis placerat ut, porta nec nulla.
        Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum &amp;lt;a&amp;gt;felis venenatis&amp;lt;/a&amp;gt; efficitur.
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="notification is-info"&amp;gt;
        &amp;lt;button class="delete"&amp;gt;&amp;lt;/button&amp;gt;
        Primar lorem ipsum dolor sit amet, consectetur
        adipiscing elit lorem ipsum dolor. &amp;lt;strong&amp;gt;Pellentesque risus mi&amp;lt;/strong&amp;gt;, tempus quis placerat ut, porta nec nulla.
        Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum &amp;lt;a&amp;gt;felis venenatis&amp;lt;/a&amp;gt; efficitur.
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's check our browser.&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%2Fuploads%2Farticles%2Fxmv3jcvrgonhp3dwzn3e.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%2Fuploads%2Farticles%2Fxmv3jcvrgonhp3dwzn3e.png" alt="html page" width="800" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this way, we integrated BULMA CSS into our Angular project it will work for any version of Angular and if you have any queries or doubts then feel free to reach out to me!!&lt;/p&gt;

</description>
      <category>angular</category>
      <category>css</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Add TailwindCSS in Angular</title>
      <dc:creator>venkateshpensalwar</dc:creator>
      <pubDate>Sat, 03 Feb 2024 06:02:03 +0000</pubDate>
      <link>https://forem.com/venkateshpensalwar/add-tailwindcss-in-angular-45a2</link>
      <guid>https://forem.com/venkateshpensalwar/add-tailwindcss-in-angular-45a2</guid>
      <description>&lt;p&gt;Hi, All today I am going to show you how we can add a CSS framework in angular, and this time I am using TailwindCSS for this post I am considering you have created an angular project already and want to integrate CSS framework.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Visit TailwindCSS's official website &lt;a href="https://tailwindcss.com/docs/guides/angular"&gt;https://tailwindcss.com/docs/guides/angular&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;On this website, you will see two npm commands we have to run the following command.&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -D tailwindcss postcss autoprefixer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now we have to run the following command it will create one configuration file for TailwindCSS and the file name is &lt;code&gt;tailwind.config.js&lt;/code&gt;.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx tailwindcss init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Then add this configuration to the file.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/**/*.{html,ts}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;After this head to the global style sheet &lt;code&gt;style.scss&lt;/code&gt; or &lt;code&gt;style.css&lt;/code&gt; and add these lines to the file.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@tailwind base;
@tailwind components;
@tailwind utilities;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now After this last step run your project using.
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Open the app.component.html file remove all default HTML and change the HTML with the following.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="container m-5 flex gap-2"&amp;gt;
&amp;lt;button type="button" class="bg-blue-600 text-white px-4 py-2 rounded"&amp;gt;Blue&amp;lt;/button&amp;gt;
&amp;lt;button type="button" class="bg-red-600 text-white px-4 py-2 rounded"&amp;gt;Red&amp;lt;/button&amp;gt;
&amp;lt;button type="button" class="bg-green-600 text-white px-4 py-2 rounded"&amp;gt;green&amp;lt;/button&amp;gt;
&amp;lt;button type="button" class="bg-cyan-600 text-white px-4 py-2 rounded"&amp;gt;cyan&amp;lt;/button&amp;gt;
&amp;lt;button type="button" class="bg-purple-600 text-white px-4 py-2 rounded"&amp;gt;purple&amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now check your browser.&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%2Fuploads%2Farticles%2Fzd2qyx41up64832mz2pv.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%2Fuploads%2Farticles%2Fzd2qyx41up64832mz2pv.png" alt="html demo" width="800" height="330"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this way, we integrated TailwindCSS into your Angular project it will work for any version of Angular and if you have any queries or doubts then feel free to reach out to me!!&lt;/p&gt;

</description>
      <category>angular</category>
      <category>tailwindcss</category>
      <category>beginners</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Add Bootstrap in Angular</title>
      <dc:creator>venkateshpensalwar</dc:creator>
      <pubDate>Tue, 30 Jan 2024 07:02:45 +0000</pubDate>
      <link>https://forem.com/venkateshpensalwar/add-css-framework-in-angular-5e2f</link>
      <guid>https://forem.com/venkateshpensalwar/add-css-framework-in-angular-5e2f</guid>
      <description>&lt;p&gt;Hi, All today I am going to show you how we can add CSS framework in angular and I am using Bootstrap for this Post.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Visit Bootstrap's official website &lt;a href="https://getbootstrap.com/" rel="noopener noreferrer"&gt;https://getbootstrap.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8w189188stkqwal9oke7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8w189188stkqwal9oke7.png" alt="bootstrap website"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You will see the npm command to install the package
```
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;npm i &lt;a href="mailto:bootstrap@5.3.2"&gt;bootstrap@5.3.2&lt;/a&gt;&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* After installing this package go into your angular.json file and add this lines into this object. 

![Angular json](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ep2cwyhtlx0bvd2p9tk.png)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;"styles": [&lt;br&gt;
            "src/styles.scss", &lt;br&gt;
            "node_modules/bootstrap/scss/bootstrap.scss"&lt;br&gt;
          ],&lt;br&gt;
            "scripts": [&lt;br&gt;
              "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"&lt;br&gt;
            ]&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
* run your application using 

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;ng serve&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* Open the app.component.html file remove all default HTML and change the HTML with the following
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Primary&lt;br&gt;
Secondary&lt;br&gt;
Success&lt;br&gt;
Danger&lt;br&gt;
Warning&lt;br&gt;
Info&lt;br&gt;
Light&lt;br&gt;
Dark&lt;br&gt;
Link&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Now check your browser 
![Browser](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dltyywh7w5podfqcvs5h.png)

In this way, we integrated Bootstrap into your Angular project it will work for any version of Angular and if you have any queries or doubts then feel free to reach out to me!!

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>bootstrap</category>
      <category>angular</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How To Use Google Fonts in web app🚀</title>
      <dc:creator>venkateshpensalwar</dc:creator>
      <pubDate>Sat, 27 Jan 2024 09:46:53 +0000</pubDate>
      <link>https://forem.com/venkateshpensalwar/how-to-use-google-fonts-in-web-app-2j2j</link>
      <guid>https://forem.com/venkateshpensalwar/how-to-use-google-fonts-in-web-app-2j2j</guid>
      <description>&lt;p&gt;As a new web developer, you want to use a different font sometimes so give a chance to Google Fonts it is a very big library for various fonts and I will show you how you can use it on your website.&lt;/p&gt;

&lt;p&gt;You can you this Google font in 2 ways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;include it in HTML.&lt;/li&gt;
&lt;li&gt;include it in CSS.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;HTML:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to website &lt;a href="https://fonts.google.com/"&gt;https://fonts.google.com/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;select any font you want and click on Get Font.&lt;/li&gt;
&lt;/ol&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%2Fuploads%2Farticles%2F9c1i8q2pgtaa98cixpuv.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%2Fuploads%2Farticles%2F9c1i8q2pgtaa98cixpuv.png" alt="get font" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Then click on Get embed code.&lt;/li&gt;
&lt;li&gt;then copy the code for HTML and add your head tag in your HTML.&lt;/li&gt;
&lt;/ol&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%2Fuploads%2Farticles%2Fkzp7m7y791e2qskux79d.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%2Fuploads%2Farticles%2Fkzp7m7y791e2qskux79d.png" alt="font code" width="800" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;After clicking on get embed code.&lt;/li&gt;
&lt;li&gt;Then click on the import radio button copy the code and add it to your CSS file.&lt;/li&gt;
&lt;/ol&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%2Fuploads%2Farticles%2F16ttth6kdwp1zc0m0cjs.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%2Fuploads%2Farticles%2F16ttth6kdwp1zc0m0cjs.png" alt="include in css" width="800" height="276"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After this, you can now use this new font in your styles in the following way&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%2Fuploads%2Farticles%2Fltlsldp4to00cqr2exvz.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%2Fuploads%2Farticles%2Fltlsldp4to00cqr2exvz.png" alt="use font" width="800" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>google</category>
      <category>googlefont</category>
      <category>font</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Use &lt;a&gt; Tag inside typeScript File</title>
      <dc:creator>venkateshpensalwar</dc:creator>
      <pubDate>Wed, 17 Jan 2024 19:59:10 +0000</pubDate>
      <link>https://forem.com/venkateshpensalwar/use-tag-inside-typescript-file-57b2</link>
      <guid>https://forem.com/venkateshpensalwar/use-tag-inside-typescript-file-57b2</guid>
      <description>&lt;p&gt;In an HTML document, the document.createElement() is a method used to create the HTML element.&lt;/p&gt;

&lt;p&gt;Sometimes we get into situations where we want to use "a" Tag in HTML but we implemented their button previously and now we want to have "a" tag-like behavior in such cases "href" attribute will not be able to be used directly in the button html so in such cases within we can do 2 things&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;change the "button" tag to "a" tag and use.&lt;/li&gt;
&lt;li&gt;use some kind of programmatic way to achieve the same behavior.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So 1st way of doing everyone knows we will get on 2nd way&lt;br&gt;
we have the document.createElement() method provided by HTML and the same method we can have in typescript as nowadays most of the frameworks use typescript.&lt;/p&gt;

&lt;p&gt;I have the following code which will show you how we can achieve this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button (click)="downloadResume()"&amp;gt; Download Resume&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;downloadResume() {
  getResumeDownload()
}

async getResumeDownload() {
    try {
      const resumeURL = await getDownloadURL(
        ref(this.fireStorage, 'venkatesh_Resume.pdf')
      );
      if (resumeURL) {
        const a = document.createElement('a');
        a.href = resumeURL;
        a.click();
      }
    } catch (error) {
      this.snackbar.open('resumne Faild to Download', undefined, {
        duration: 2000,
      });
    }
  }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;here you can see I wrote one code to get the resume link from the Firebase storege and download it in a single go so on clicking the button I made a call and after receiving the resume URL I created an element and attached the download URL on "a" tag and clicked on it so it will download that file otherwise we will have to attach this URL to hidden tag and need to trigger someway.&lt;/p&gt;

&lt;p&gt;So In this way, a simple trick will save your time, if you like this small tip then thank you and if you have any questions please let me know.&lt;/p&gt;




</description>
      <category>typescript</category>
      <category>html</category>
      <category>angular</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
