Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leadstar116/angular-rxjs-state-management-app

Angular project that shows simple usage of Dependency Injection and RxJS
https://github.com/leadstar116/angular-rxjs-state-management-app

angular angular-cli angular7

Last synced: about 1 month ago
JSON representation

Angular project that shows simple usage of Dependency Injection and RxJS

Awesome Lists containing this project

README

        

# Simple Angular App using RxJS state management

## Project Details
Created an angular 7 project with 3 components.

Search component that accepts a form input field, and two radio buttons(see diagram below).

The user enters a search string and based on the radio selection either a Bing Results Component or Google Results Component will be loaded onto the page via DI.

When the Search string is entered, State Service would be notified and either Bing/Google will be loaded via the with a simple text “this is the (bing/google) component.

This component can be used for any search service. Easy for extendable.

## Project created by Angular CLI

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.20.

## Description

Angular project that shows simple usage of Dependency Injection and RxJS

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).