F G+ T

tuandph

Khởi đầu với .NET từ năm 2013 đến nay. Hiện tại mình đang làm full-stack developer. Yêu thích lập trình & chia sẽ kiến thức. Thời gian rảnh thường làm những tool vui vui và viết lách kể lệ sự đời.

[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 […]

[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 […]

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 […]