https://github.com/splitio/angular-sdk-examples
https://github.com/splitio/angular-sdk-examples
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/splitio/angular-sdk-examples
- Owner: splitio
- Created: 2018-04-06T19:59:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-21T14:36:06.000Z (about 2 years ago)
- Last Synced: 2024-12-21T14:38:25.967Z (about 1 year ago)
- Language: TypeScript
- Size: 844 KB
- Stars: 4
- Watchers: 19
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular JS SDK examples
> Currently, the project is using Angular 15.2.10.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.1 and then updated to the version 15.2.10
The goal of this project is to show one way to set up the Split angular utilities in Angular.
## Getting started
_Optional:_ If `nvm` is locally installed, run `nvm i` to set the required Node version.
- `npm install`
- `npm install -g @angular/cli`
- `ng serve` will start a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
>_Note:_ To effectively test the SDK, you need to set the corresponding Browser [SDK key](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK#2-instantiate-the-sdk-and-create-a-new-split-client).
>The SDK key is available on your *Organization Settings* page, on the *APIs* tab. Remember to choose `browser` type.
>In addition to that, you may want to create some feature flags in the admin and then update [the list of feature flags defined in the code example](https://github.com/splitio/angular-sdk-examples/blob/efant_updateExample/src/app/splitio.service.ts#L27-L31).
## 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).
If you need help with Split usage, please reach out to support@split.io.