Skip to content

Commit

Permalink
docs(project): updated the readme #298
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Jul 25, 2019
1 parent a628df4 commit 6dfc678
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,27 @@ export class AppComponent {
| links | `Input()` | `LinkMenuItem[]` | - | additional routes and links to add to the component
| onSignOut | `Output()`| void | - | this will be fired when the user signs out


```ts

import {LinkMenuItem} from 'ngx-auth-firebaseui';

links: LinkMenuItem[];

ngOnInit(): void {
this.links = [
{icon: 'home', text: 'Home', callback: this.printLog},
{icon: 'favorite', text: 'Favorite', callback: this.printLog},
{icon: 'add', text: 'Add', callback: this.printLog},
];
}

```

```html
<ngx-auth-firebaseui-avatar [links]="links"></ngx-auth-firebaseui-avatar>
```

### EXTRA TIP: Login Authentication Guard

If you want to prevent a route to be accessed from non authorized users, you can
Expand Down

0 comments on commit 6dfc678

Please sign in to comment.