# Angular - Create Private Pages that are accessible only after Authorization

**URL:** <https://forum.builder.io/t/angular-create-private-pages-that-are-accessible-only-after-authorization/3106>\
**Category:** Technical Questions\
**Tags:** angular\
**Created:** [January 18, 2023, 3:54pm UTC](https://forum.builder.io/t/angular-create-private-pages-that-are-accessible-only-after-authorization/3106 "2023-01-18T15:54:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [January 18, 2023, 3:54pm UTC](https://forum.builder.io/t/angular-create-private-pages-that-are-accessible-only-after-authorization/3106/1 "2023-01-18T15:54:00Z")

</div>

1. With the Angular CLI, create a `LandingPageComponent` or Any other page component that you want to be private:

2. Add the below imports to `app.module.ts`

3. Generate Builder Private key

![private key](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/60edeb1fa2b403fe1aa6b61e16bbf6c48d5a120f.gif)

1. Go over to [builder.io/models](http://builder.io/models) and choose your model and hit `show more options` under `model settings` and then find the `public readable` option and turn that off and save your model, e.g. perhaps make a new `private-page` model of `page` type with this setting switched off.  

2. From src → app → landing-page -\>. Open `landing-page.component.ts` and add or replace content with below code

Note: In case you get Error: Module not found: Error: Can’t resolve ‘@angular/elements’,

To resolve this install dependency for `@angular/elements` using below command

`npm i --save @angular/elements`

Repo: [GitHub - Manic-sh/builder-angular-private-pages: Builder Integration with angular, private page example](https://github.com/Manic-sh/builder-angular-private-pages)
