# ng generate guard

## Overview
`ng generate guard [name]` generates a guard

## Options
<details>
  <summary>app</summary>
  <p>
    <code>--app</code> (aliases: <code>-a</code>) <em>default value: 1st app</em>
  </p>
  <p>
    Specifies app name to use.
  </p>
</details>

<details>
  <summary>flat</summary>
  <p>
    <code>--flat</code>
  </p>
  <p>
    Indicate if a dir is created.
  </p>
</details>

<details>
  <summary>module</summary>
  <p>
    <code>--module</code> (aliases: <code>-m</code>)
  </p>
  <p>
    Specifies where the guard should be provided.
  </p>
</details>

<details>
  <summary>spec</summary>
  <p>
    <code>--spec</code>
  </p>
  <p>
    Specifies if a spec file is generated.
  </p>
</details>
