Solution to the problem of secondary trigger of angular paging plug-in tm.paging

Today, I encountered a front-end problem while learning the paging plug-in of angularjs. During the debugging of Google browser developer mode, I found that each click of paging refresh button would trigger two background requests, and ajax sent two requests to the background. This is a disgusting and uncomfortable thing for obsessive-compulsiv ...

Posted by 2705ap on Sat, 15 Feb 2020 09:50:49 -0800

Angular JS file upload tool

Detailed introduction of angular file upload Angular file upload is a lightweight AngularJS file upload tool. It is designed for the file API Polyfill which does not support browser, and uses HTML5 to upload files directly. Online demo Characteristic Support upload progress, cancel or abort when uploading, support file drag ( ...

Posted by aeafisme23 on Thu, 13 Feb 2020 11:50:17 -0800

ROS melody speech recognition learning

ROS speech recognition control robot (2) Article directory ROS speech recognition control robot (2) Create Ros package control logic Control the little turtle by writing instructions Voice to text Create Ros package In the previous section, the voice to text is implemented. The content of ...

Posted by yshaf13 on Sat, 08 Feb 2020 04:04:06 -0800

Turtlebot2-kinetics environment configuration

Turtlebot2-kinetics environment configuration Operational steps for environment configuration Installation preparation Create three workspaces, rocon, kobuki, turtlebot, download and compile the source code Create a rocon directory, download and compile it, and rocon has a corresponding kinetic s v ...

Posted by devai on Sat, 01 Feb 2020 19:33:49 -0800

Angular + ng Zorro table drag

angular integrates CDK drag drop to implement drag function app.modules.ts import import { DragDropModule } from '@angular/cdk/drag-drop'; imports: [ DragDropModule ] 1, Drag and drop sorting in table <nz-table [nzData]="sourceData" [nzFrontPagination]="false" [nzShowPagination]="false" [nzScroll ...

Posted by The MA on Thu, 23 Jan 2020 06:47:28 -0800

Angular2.x/Typescript module introduced parsing

First, modules are introduced in two ways:1. Relative import: import Entry from "./components/Entry"; import { DefaultHeaders } from "../constants/http"; import "/mod"; Relative import resolves relative to the file it was imported into and cannot be resolved to an external module declaration. You should use relative import for your own modules ...

Posted by Crowly on Thu, 09 Jan 2020 11:46:06 -0800

About ionic3 Aurora push Registration ID cannot be obtained for the first time

Question: 1. The Registration ID cannot be obtained for the first time. You can use setTimeout to delay obtaining. 2. For Registration ID, the first time you open the app, you cannot get the id until you exit the app. Because the login user needs to be associated, the id must be sent to the background after login. Edition: ...

Posted by djmc48 on Sun, 05 Jan 2020 14:14:25 -0800

rxjs processing http request timeout

Original blog address Usage scenarios The user requests an operation in the background and does not respond for a long time. We want to give the user an information display (request timeout, bad network...) . RxJS implementation About RxJS Here My implementation of this function mainly uses two operators: delay and race. ...

Posted by mattkirkey on Thu, 02 Jan 2020 14:46:42 -0800

Achieve Baidu paging effect

This time, we mainly use: jquery+angularjs+bootstrap to achieve paging effect Test tool: HBuilder First of all, we need to analyze the principle of Baidu paging. Here is my screenshot of paging First, create a project, create a page, and add json data Import corresponding js and cs Start writing First, import js and ...

Posted by Imothep on Mon, 30 Dec 2019 09:41:38 -0800

Several dependency injection methods of angular

1,useClass One way to write a provider is like this providers: [...Service...], Its complete writing method is providers: [{provide:Service,useClass:Service}], provide provides the token and the service actually used is the service declared by useClass, as follows providers: [{provide:Service,useClass:anotherService}], If ot ...

Posted by kimbeejo on Mon, 30 Dec 2019 06:24:27 -0800