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 […]
[Ionic] Best practice when migrating from v5 to v7
It’s very painful when you decide to upgrade from v5 to v7. I’ve experienced this and here are some highlights in case you have a plan to update Ionic from v5 to v7 1. Create a brand new project with v7 Despite Ionic team support you migrate from v5 to v7 with the migrate checklist […]
[Ionic] Start server to test Production build in 5mins
- tuandph
- April 3, 2024
- Uncategorized
Sometimes you need to test the build with production mode. But you don’t want to deploy to somewhere. So just run it on the local folder. With this help 1. Install the server 2. Build your code as Production mode 3. Run & enjoy
Lựa chọn Design Pattern phù hợp và ví dụ trong C# – Phần 3
Ở phần trước chúng ta đã nghiên cứu về nhóm design pattern “Cấu trúc” Hôm nay chúng ta tiếp tục với nhóm design pattern mang tên “Hành vi” (Behavioral Patterns) 1. Định nghĩa Nhóm design pattern theo “Hành vi” mà một nhóm tập trung vào việc phân chia nhiệm vụ giữa các đối tượng với […]
[API] Best practice when designing endpoint
When your application has multiple user roles. You should think about the API endpoint. Not only for coding but for debugging and testing purposes. In my experience, Whenever you design Back-end API you should separate the Controller for every user role. Example: This method will help you bring more benefits as below: You will know […]
[Ionic] Common error
1. Cannot bind a value to NgModel in component Issue: cannot set value to [(ngModel)]=”startDate” in any Component Reason: lack of import IonicModule, FormsModule in ComponentModule Solution: 2. ERROR Error: Uncaught (in promise): Error: JIT compiler unavailable Error: JIT compiler unavailable Điều này xảy ra khi trong component của bạn có sử dụng @ViewChild. Nguyên […]
Tìm Nuget package tương thích với Project
Khi làm việc với .NET project thỉnh thoảng chúng ta sẽ cần install các thư viện ở Nuget. Tuy nhiên một vài dự án có thể dùng .NET framework cũ. Thì khi cài đặt bạn cần lưu ý các vấn đề này.
[UI/UX] Một số thiết kế đẹp
1. Information stats 2. Mẫu QR code scan page 3. Mẫu card đẹp Tham khảo: Blog Card Grid (codepen.io) Tham khảo: Cards (codepen.io)