Filtered by: tags=ionic

Reflecting server errors in Angular form validation

Feb. 12, 2020 |  ionic  REST  validation  angular 
Here's some sample code that shows how to display server validation errors sent by a django-restframework REST server. Specifically, note how `ngIf` & `ngFor` tags are used to conditionally detect and display error messages set on individual controls. The

Ionic 4 HTTP CORS Issue

Nov. 7, 2018 |  ionic  ionic4  cordova 
Ionic 4 also makes a fundamental change in how the created app is rendered (I use rendered as apps are essentially HTML which is rendered using the native WebView control of the device's UI framework) in a device. While earlier versions used to refer to th

Downloading & opening a file in an Ionic app

April 17, 2018 |  file  cordova  ionic 
If you search the Internet for examples to achieve the above, you'll get a number of resources that suggest using the [cordova-file-transfer](https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file-transfer/) plugin. However, with Ionic 3+

Cordova build errors

April 17, 2018 |  android  cordova  build  ionic 
Had this unusual errors crop up when building a cordova app for android. This started appearing after I installed cordova-plugin-file-opener2. Going through [platforms/android/project.properties] file, I realized that there was something quite odd about it