https://github.com/meepobrother/meepo-category
分类相关
https://github.com/meepobrother/meepo-category
angular category meepo
Last synced: 3 months ago
JSON representation
分类相关
- Host: GitHub
- URL: https://github.com/meepobrother/meepo-category
- Owner: meepobrother
- License: mit
- Created: 2018-01-01T08:13:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-06T10:29:47.000Z (over 8 years ago)
- Last Synced: 2025-02-28T09:23:17.398Z (over 1 year ago)
- Topics: angular, category, meepo
- Language: JavaScript
- Homepage: https://meepo.com.cn/meepo/ng/category/
- Size: 1.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## qrcode for angular
```html
{{item.title}}
-
{{data.title}}
```
```ts
import {
Component, OnInit, ChangeDetectionStrategy,
ViewChild, ElementRef, ChangeDetectorRef
} from '@angular/core';
import { EventService } from 'meepo-event';
import { CategoryComponent } from '../../src/app/app';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class AppComponent {
@ViewChild('category') category: CategoryComponent;
constructor(
public event: EventService
) {
let now = new Date();
let version = new Date(now.getFullYear(), now.getMonth() + 1, now.getDate()).getTime();
this.event.checkVersion(version);
}
setItem(item: any) {
this.category.addHistory(item);
if(item.link){
}
}
}
```