Posts Categorized: Lập trình

Multiple layout within Ionic app

When developing an Ionic app, implementing distinct layouts for different user roles is essential for usability and functionality. In this article, we’ll explore how to structure an Ionic app with two master layouts—one for regular users and another for administrators—each with its own unique navigation system.

Best Practices for Designing a Booking System Database

Designing a booking system database requires efficiency, flexibility, and scalability. A common mistake is creating separate tables for different item types, such as vehicles, security personnel, and additional services. Instead, a more optimized approach is to use a single table to manage all service items uniformly, simplifying queries and database maintenance.

Transaction Management in Systems using .NET Core and MS SQL

Introduction In financial or e-commerce systems, managing financial transactions is a crucial part. Each transaction can consist of multiple components such as purchasing items, platform fees, or payment gateway fees. To ensure data integrity and transparency, the system needs a mechanism to record transactions and financial journals clearly and accurately. This article will guide you […]

[Ionic] Dynamic Layout background color

Way 1: Using document body to set theme (preferred) 1. Set the document body inside the main layouts 2. Style the app in the variable.scss Way 2: Set them variables directly into Main layout page Structure the files Given you have folder structure like this. ui-pages/main: layout using for admin, moderator role ui-pages/user: layout using […]

[Ionic] Tạo image resource với Capacitor

Tạo folder và files cần thiết Tạo folder resources ngang cấp với folder src. Có cấu trúc các files như sau với các lưu ý như sau Icon files should be at least 1024px x 1024px. Splash screen files should be at least 2732px x 2732px. The format can be jpg or png. Đảm bảo rằng bạn đã cài package Chạy câu lệnh tạo […]

[Ionic] Working with theme color

In ionic if you want to work with color. For example, want to change the primary color. want to change the warning color add a new color name I will go one by one to further explanation Change the primary color After creating your app. You change your mind about applying the primary color of […]