This project demonstrates how to implement a search autocomplete feature using the Angular 19 Resource API with Server-Side Rendering (SSR). The application showcases real-time search functionality with a clean and efficient design.
- Search Autocomplete: Provides suggestions based on user input in real-time.
- Angular 19 Resource API: Utilizes the latest features of Angular 19 for efficient data fetching.
- Resource API: Fully reactive coding.
- Server-Side Rendering (SSR): Enhances performance and SEO by rendering pages on the server.
- Responsive Design: Fully optimized for desktop and mobile devices.
Before running the application, ensure you have the following installed:
- Node.js (version 18 or later)
- Angular CLI (version 18 or later)
- npm or yarn package manager
git clone https://github.com/akash-pandey1/angular-19-resource-api-search-autocomplete.git
cd app-nine
npm install
npm run start
Open your browser and navigate to http://localhost:4200
to view the app.
npm run build
npm run serve
Open your browser and navigate to http://localhost:4000
to view the SSR-enabled app.
src/
├── app/
│ ├── app.component.ts
├── main.ts
├── server.ts
- SearchBarComponent: Handles user input and displays the search bar.
- AutocompleteDropdownComponent: Displays suggestions fetched from the Resource API.
- ResourceApiService: Manages communication with the backend API.
- User inputs a query in the search bar.
- The
ResourceApi
sends a request to the backend using the Angular Resource API. - Suggestions are fetched and displayed in the
AutocompleteDropdownComponent
. - Server-Side Rendering (SSR) ensures optimal performance and SEO benefits.
- Angular 19
- SSR
- Angular Resource API
- TypeScript
- HTML5/SCSS
This project is licensed under the MIT License. See the LICENSE
file for details.
Contributions are welcome! Feel free to fork the repository and submit a pull request.
- Fork the repository
- Create a new branch:
git checkout -b feature-name
- Commit your changes:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature-name
- Open a pull request
- Angular Team for the Resource API
- Community contributors for inspiring the project
For any questions or support, please contact [akashdeep9226@gmail.com].