import { Injectable } from '@angular/core'; import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpErrorResponse } from '@angular/common/http'; import { Observable } from "rxjs/Observable"; import { Adal4Service } from '../adal/adal4…
1.项目中字符串特别是\r\n,替换成br之后,在页面换行无法生效? 答:绑定元素 innerHTML. <div class="panel-body" [innerHTML]="proTxt(iosPkg.ReleaseNotes)"></div> proTxt(txt: string) { return txt && txt.replace(/\r?\n/g, "<br />").repla…
View Code import { Component, HostListener, ElementRef } from '@angular/core'; import { Adal4Service } from '../../adal/adal4.service'; export class UserProfile { name: string; roleName: string } @Component({ selector: 'avatar', templateUrl: './avata…
1.手机端 图片预览组件 组件:sideshow 效果图:(预览图全屏 且可以左右移动)                  code: <div class="row ui-app-screenshot"> <img src="{{proUrl(pic.Url)}}" *ngFor="let pic of currApp.Pictures;let i = index;" (click)="onViewPicture(i…
code import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; @Injectable() export class CommonService { private notify = new Subject<any>(); /** * Observable string streams */ notifyObservable$ = this.notify.asObservable(…
View Code import { Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { ConfigureService } from '../../configure/configure.service'; import { Router } from '@angular/router'; @Component({ selector: 'na…
view code <div class="fxs-breadcrumb-wrapper" aria-label="Navigation history"> <div class="fxs-breadcrumb-dropmenu"> <div class="fxs-dropmenu" role="presentation"> <div class="fxs…
<div class="form-group row"> <label class="col-sm-2 col-form-label">会议Logo</label> <div class="col-sm-10"> <dx-file-uploader selectButtonText="选择图片" name="file" [multiple]="…
download() { const token = localStorage.getItem('token'); let headers: HttpHeaders = new HttpHeaders(); headers = headers .set('Authorization', 'Bearer ' + token); const url = 'http://localhost:8764/api/v1/user/downLoadZipFile'; this.http.get(url, {h…
import { Injectable, Pipe } from '@angular/core'; @Pipe({ name: 'orderBy' }) @Injectable() export class OrderBy { /* Takes a value and makes it lowercase. */ static _orderByComparator(a:any, b:any):number{ if((isNaN(parseFloat(a)) || !isFinite(a)) ||…