Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/meepobrother/meepo-permissions

权限控制
https://github.com/meepobrother/meepo-permissions

angular permissions

Last synced: 12 days ago
JSON representation

权限控制

Awesome Lists containing this project

README

        

## qrcode for angular

```html


我是管理员
退出登录

我是不是管理员
管理员登录

```

```ts
import {
Component, OnInit, ChangeDetectionStrategy,
ViewChild, ElementRef, ChangeDetectorRef
} from '@angular/core';
import { EventService } from 'meepo-event';
import { } from '../../src/app/app';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class AppComponent {
constructor(
public event: EventService
) { }
test() {
this.event.publish('role.change', {
items: ['admin']
});
}
quit() {
this.event.publish('role.change', {
items: ['fans']
});
}
}

```

```html


我是管理员
退出登录

我是不是管理员
管理员登录


{{item|json}}

```