Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meepobrother/meepo-permissions
权限控制
https://github.com/meepobrother/meepo-permissions
angular permissions
Last synced: 12 days ago
JSON representation
权限控制
- Host: GitHub
- URL: https://github.com/meepobrother/meepo-permissions
- Owner: meepobrother
- License: mit
- Created: 2018-01-03T01:38:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-06T10:45:57.000Z (about 7 years ago)
- Last Synced: 2024-11-12T03:23:39.713Z (2 months ago)
- Topics: angular, permissions
- Language: JavaScript
- Homepage: https://meepo.com.cn
- Size: 1.54 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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}}
```