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

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

分类相关
https://github.com/meepobrother/meepo-category

angular category meepo

Last synced: 3 months ago
JSON representation

分类相关

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){

}
}
}
```