In CLI “generate” command there are no “service” option.
There are another option to post json to my serve?
In Ionic you generate providers, not services. Check the documentation out.
Thanks, I Just created a provider and import it.
I have:
@Injectable()
export class ConectmeProvider {
hi(){
console.log('hi people');
}
constructor(public http: Http) {
console.log('Hello Man ConectmeProvider Provider');
}
}
How can I send a json with this?
It depends, to which server do you want to send it? Some database like Firebase?
In the file echo.php is the server side.