There are so many options available on the internet when it comes to deploying your Angular app, but one of my recent favorites is Netlify. Netlify offers you to deploy your app manually and also from GitHub. Here's a step-by-step guide on how to deploy your website on Netlify: Step 1: Build Your Project Go to your project directory and run the build command: ng build or ng build --configuration=production Step 2: Add Netlify Configuration Go to build/your-project-app/browser and add a file netlify.toml with the following configuration: [[redirects]] from="/*" to="/index.html" status=200 This file redirects all routes to your index.html file. Step 3: Deploy on Netlify Login or sign up to your Netlify account and click on "Add new site" then select "Deploy manually." Step 4: Upload Your Files Drag and drop the browser folder to Netlify. Victory!!! Your Angular App is deployed.
MULTIPLE VALUE SEARCH FILTER
In this blog, You will learn to make a search filter that filters through multiple values using ReactJS.
Step 1:- In this tutorial blog we have created an App.js file. Create a Dummy data named "DATA" and passed it as props in our Filter Component.
Step 2:- Next create a Filter.js file for Filter Component and create an Input for Search. The Input gets its value from 'getDisplayedOption' function, and the change is handled by the handleInputChange function, clickHandler function set the state to show the list.
Step 3:- we will now write a function to filter query search for multiple values. We will use the useEffect hook that will set the filtered results every time searchTerm and data changes. Here we are first converting the search input into a lowercase string and removing the spaces then filtering through the data that matches our input value then setting the state of the filteredData at the end.
Step 4:- Then set the value of the input to the option clicked.
Source code:- Search Filter
Comments
Post a Comment