1. At first, I wrote the interface in each component.ts
.
2,server.ts
1. At first, I wrote the interface in each component.ts
.
2,server.ts
tell me what I'm doing. I don't know if it meets your requirements.
I'm writing interface url into a class:
export class ServicePath {
public static SHOPLIST = 'xxx.xxx';
}
the http request is only made in the service, which is the same as the case on the official website:
getList(data) {
return this.http.post(ServicePath.SHOPLIST, data)
}
then introduce service request processing data into the component:
this.service.getList(data).subscribe(res => {
console.log(res);
})
Previous: Write their own local npm package, test error, ask for help.
Next: Vue uses jsrsasign encryption, prompting KJUR is not defined
nz-table but it is useless, ask the boss to solve it! http: ng-alain.com https: ng.ant.design -sharp compo. ...
1, display configuration document 2i18n.service.ts } 3 ...
follow the course, still request mock data of less than 8000 port "data of port 8000 can be requested directly to , but request 8000 port at port 4001. , help me with some suggestions ...
Uncaught Error: Template parse errors: md-toolbar is not a known element: 1. If md-toolbar is an Angular component, then verify that it is part of this module. git: https: github.com yyccQQu 0405newNg tree dev my-app ...
I want to see how to close the router page or return to the previous router page after the user enters the page. A prompt box appears when the user clicks OK and then closes or returns. Can bosses do this? ...
as above, I want to change jobs in the next recruitment season. I want to learn ng, from the needs of companies in the market, but it is very difficult. I don t know which version to read first. In fact, I have read the tutorials of angular5 and have so...
for example, now you need to jump between different projects, the backend is not allowed, and the second project needs to get the information of the first project ...