32 Exercises

Services demo29

demo29.component.ts

  Injection services, according to the results of the service method returns, decide whether to display a list of

custom.service.ts: a method of packaging

checkUserLogin, to check whether the user is logged in, login status is return true, or is not logged in

Guess you like

Origin www.cnblogs.com/shanlu0000/p/12230052.html