# separate-ng-inline-templates

> Utility to migrate angular component's inline template to teplateUrl

Latest version **1.0.0** (published 2020-02-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install separate-ng-inline-templates
pnpm add separate-ng-inline-templates
yarn add separate-ng-inline-templates
bun add separate-ng-inline-templates
```

Provides the command `separate-ng-inline-templates`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-02-29 |
| First published | 2020-02-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Riyaz |
| Maintainers | mohammedriyaz |
| Keywords | "angular, utility", "convert, inline, template, to, template, url" |

## Links

- npm: https://www.npmjs.com/package/separate-ng-inline-templates
- npm.io page: https://npm.io/package/separate-ng-inline-templates

## Dependencies (2)

- [find-in-files](https://npm.io/package/find-in-files.md) ^0.5.0
- [command-line-args](https://npm.io/package/command-line-args.md) ^5.0.2

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-02-29

## README

# separate-ng-inline-templates

This is very useful command line tool to migrate angular component's inline templates into separate template files.
Its the teadious job to manually do that. We need to touch hundred+ files based on size of the projects. 

This tool will automate migration process and do that for you within fraction of seconds.

## Installation

Install this tool globally, so that it will be available from anywhere

```
npm i -g separate-ng-inline-template
```
## Usage

```
separate-ng-inline-template -d <angular_components_path>
 ```
 OR
 
 ```
 separate-ng-inline-template --dir <angular_components_path>
  ```
 
 Example
 
 ```
separate-ng-inline-template --dir ./app
```  
Tool will do following processes
 - will find all angular component files 
   - (by default looks for component.ts files. if it needs to look for js file, we can use -f "component.js"). 
 - verifies whether component file has inline template or not. 
 - if component file contains inline template, it will separate inline content from component file
 - create the <componentname>.component.html file
 - writes the separated inline template content into html file
 - Finally replace component file template attribute with templateUrl: "<compoentname>.component.html"

## Author

* **Mohammed Riyaz**

---
_Source: https://npm.io/package/separate-ng-inline-templates · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
