How to install Provider ?? Ionic 4

Asked

Viewed 146 times

-1

I can not at all install this Provider , it asks to generate a 'service' and even after generating the service it gives the same error!!!![Error generate service]1

2 answers

1

Unlike Ionic 3, Ionic 4 uses service and not Provider

Here’s an example of how to create a service using Angular CLI

ionic generate service user
  • Thanks brother , same quarrel!

  • Don’t forget to accept one of the answers :)

0

use:

ionic generate provider <name> [options]

From IONIC 4 IONIC CLI has changed some syntaxes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.