![](https://media.giphy.com/media/woOxBpJ5FcndK/giphy.gif)

Yeoman Generator for AngularJs. Create either a component, directive, controller, service or a filter.

# Useage

```
npm install -g yo generator-yo-ng-js
```


```
yo yo-ng-js
```

Pass your choice as the first argument

```
yo yo-ng-js component
```

Pass the name of your choice as the second argument

```
yo yo-ng-js component my-component-name
```

![](https://media.giphy.com/media/woOxBpJ5FcndK/giphy.gif)

Yeoman Generator for AngularJs. Generate either a component, directive, controller, service or a filter.

You'll get prompted:

- What you want to generate; controller, component etc
- It's name
- Whether an Angular module should also be generated
- The name of the Angular application (to be used with the module)

# Components and Directives

Components and directives will generate an associated controller and template.

# Usage

## Install

Install [Yeoman](http://yeoman.io/) and yo-ng-js.

```
npm install -g yo generator-yo-ng-js
```

## Get Prompted

Get prompted for what you need to generate; component, directive etc.

```
yo yo-ng-js
```

## Using Arguments

You can shortcut the first two questions by passing some arguments.

Pass what you want to generate as the first argument.

```
yo yo-ng-js component
```

Pass the name of your choice as the second argument.

```
yo yo-ng-js component my-component-name
```

Update to the readme. Learn how to spell
Update to the readme. Learn how to spell
