This document discusses creating mobile applications using Ionic, Angular, and Drupal 8. It provides an overview of using Drupal 8's web services API to retrieve and manage content, implementing Angular services to make HTTP requests to the API, and using the Ionic framework to build hybrid mobile apps. An example is shown of retrieving article data from Drupal 8 using Angular services, and displaying it in an Ionic app with clickable items linking to detail pages.
2. Plan
● Web Services API Drupal 8
● Angular
● Angular Services
● Ionic
● Exemple : Apps Ionic + Angular + Drupal 8
3. Web Services API Drupal 8
● Les méthodes HTTP dont GET,POST,PUT, PATCH
● Interaction avec les entités dépend de module serialization
● Service de sérialisation des données vers et à partir des formats(json, xml)
8. Angular
● Framework de création d'applications web et mobile
● TypeScript : compilation vers javascript
● Angular Universal : l’exécution côté serveur
● Angular CLI : outil de commande en ligne(composants, test, déploiement)
● Composants : Router, HTTP, Forms, platform-browser….
10. Angular Services
● HttpClient : API pour des fonctions de HTTP (@angular/common/http)
● export class MyComponent implements OnInit {
● results: string[];
● // Inject HttpClient into your component or service.
● constructor(private http: HttpClient) {}
● ngOnInit(): void {
● // Make the HTTP request:
● this.http.get('/api/items').subscribe(data => {
● // Read the result field from the JSON response.
● this.results = data['results'];
● });}
● }