# Deprecation notice
The **swagen-ng1-http** generator has been deprecated and replaced by the [**swagen-angular**](https://github.com/swagen/swagen-angular) ([npm](https://www.npmjs.com/package/swagen-angular)) package.

There are breaking changes in the configuration between `swagen-ng1-http` and `swagen-angular`.
We recommend that you remove the existing configuration and recreate it from scratch.

1. Install the `swagen-angular` package, either globally or locally
```sh
# Globally
npm install -g swagen-angular

# Locally
npm install --save-dev swagen-angular
```

2. Uninstall the `swagen-ng1-http` package.
```sh
# Globally
npm uninstall -g swagen-ng1-http

# Locally
npm uninstall --save-dev swagen-ng1-http
```

3. Ensure that you have the latest version of [**Swagen**](https://github.com/swagen/swagen) ([npm](https://www.npmjs.com/package/swagen)).
```sh
# Check version of globally-installed Swagen
swagen version

# Check version of locally-installed Swagen
node_modules/.bin/swagen version
```

4. From your `swagen.config.json` and `swagen.config.js` configuration files, remove any sections that use the `swagen-ng1-http` generator.
    > If you are using recent versions of Swagen, you can type `swagen remove <section name>` to remove the section from `swagen.config.json`.


5. Use the `swagen init` command to recreate these sections.
