Тёмный
No video :(

[IONIC 4] When & How to Use Services/Providers in Ionic  

Joshua Morony
Подписаться 75 тыс.
Просмотров 25 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@JeremyWinfreeDev
@JeremyWinfreeDev 5 лет назад
Great examample!
@stevenetter1038
@stevenetter1038 5 лет назад
I have gotten so much use out of your tutorials. Thank you so much.
@_erayerdin
@_erayerdin 5 лет назад
Buffer overflow in calculateTrueLove()
@MyAsdfqwe
@MyAsdfqwe 5 лет назад
Thank you! This was explained perfectly. Now i just use services for everything.
@neomokono6979
@neomokono6979 5 лет назад
I subscribed because of this video. Great work, really excited to see more of your content
@blessedffs
@blessedffs 5 лет назад
Nicely explained. Thanks !
@stewwweee
@stewwweee 6 лет назад
Very well explained ..simple and near ,nice one Josh
@dmgGeronimo
@dmgGeronimo 5 лет назад
helped me a lot! thanks
@TECStudy
@TECStudy 3 года назад
Thnx
@watsoncyrusanikwai3888
@watsoncyrusanikwai3888 6 лет назад
Good one! Thanks.
@vidalroland
@vidalroland 5 лет назад
That was helpful ! If I understand well, Angular 7 merged services and providers into services. Right ? Should we do one service for all API requests or slice it into multiple services ?
@JarridLima
@JarridLima 6 лет назад
Thanks. Very good
@Arigatex
@Arigatex 6 лет назад
Is there such a thing as too many services? Should I try to keep the number resonably low with long services or is it best practice to have many small ones? I can see arguments for both.
@JoshuaMorony
@JoshuaMorony 6 лет назад
In the end, I think it comes down to what works best for your application. Generally, I would have a separate provider for each entity/concept in the application (Users, Todos, Jobs, etc).
@saurabrakshit405
@saurabrakshit405 3 года назад
nice vdo man ! I have this function in the service file printArray() { const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; console.log(arr); } & I'm calling this function in home.page.ts as following: import { AdServiceService } from '../ad-service.service'; constructor(adService: AdServiceService) { } printValue() { this.adService.printArray().subscribe((resp) => { console.log(resp); }) } but geting error under "adService" inside printValue() function can you suggest me any solution for this issue thanks in advance!!!!!!
@99imre
@99imre 5 лет назад
thank you, great!
@eltonleao3979
@eltonleao3979 3 года назад
Examample is gonna be my son's name
@kapscreators
@kapscreators 6 лет назад
Hi in ionic I am having problem like I am not able to create apk
@js_talks
@js_talks 6 лет назад
Hi, maybe this help you engineerphilosophy.com/ionic-framework-setup-step-by-step-tutorial/
@RobsonOliveiraDosSantos22
@RobsonOliveiraDosSantos22 6 лет назад
You did not show how to share data between pages with services
@JarridLima
@JarridLima 6 лет назад
Basta chamar o service na outra página também e repetir o mesmo processo.
@FrancescoDeGiorgio
@FrancescoDeGiorgio 5 лет назад
you can simply do these following steps: in your service page (let's say "example.service.ts) declare a variable userData = { "param1" : " ", "param2" : "" }; , in the page you want to use it -> import { ExampleService} from '../services/example.service'; and in the constructor declare it as constructor(private myService : ExampleService) {} - for using it just type this.myService.userData.param1 = "test"; this.myService.userData.param2 = "test for parameter 2" etc
@neura3964
@neura3964 5 лет назад
super lazy, dont even make an real service to eschange data between pages
Далее
WELCOME - Ionic Tips Weekly Ep. 0 #ionic #angular
1:45
Using Custom Components on Multiple Pages in Ionic
12:48
Cute kitty gadgets 💛
00:24
Просмотров 15 млн
Understanding Angular Routing in Ionic 4 Apps
19:50
Просмотров 18 тыс.
Here's what I've figured out about Angular signals
8:33
How to pass Data to Ionic 4 Modals, Pages & Popover
17:58
I've been using Redis wrong this whole time...
20:53
Просмотров 354 тыс.
Styling a Shadow DOM in Ionic #ionic #angular
14:46
Просмотров 25 тыс.
Services in Angular - Learning Angular (Part 6)
14:05
Angular for Beginners - Let's build a Tic-Tac-Toe PWA
20:46
How I code in Angular when nobody is watching
7:03
Просмотров 10 тыс.