and then after you have done what @rapropos has stated is true, create a component.
how to duplicate a page? (I'm a newbie)
Ionic Plugin for SQLite Dont build for Windows Platform
windows platform is not supported anymore on ionic 4.
Cordova pluggins security issue on veracode scan
Those plugins are by individual developers and it’s their responsibility to update them. You would need to contact them via github and tell them about their vulnerabilities.
Leaflet map can't be loaded ionic 4...pleas help!
Nobody with similar problems will ever be able to find this thread, because you posted what should be text as images.
Nobody can copy and paste your code in order to reproduce your problem or work to improve it, because you posted what should be text as images.
Nobody using assistive technology like screen readers, or who browses with image loading disabled can attempt to help you or even have any idea what you’re talking about, because you posted what should be text as images.
CORS ISSUE - IONIC 5 Cordova 9 - web api PHP
It’s interesting that you didn’t use the ordinary delete
method of HttpClient
, instead rolling your own with custom content types and manual JSON stringifying. I suspect that’s because HttpClient
's delete
doesn’t take a body.
There’s a very good reason for that. Resources to be deleted must be completely specified by the URL. Bodies in DELETE requests “have no defined semantics”, which is RFC-speak for “don’t rely on this”. Even in a case like this where you control the backend, it’s important to adhere to HTTP standards. You never know when your requests are going to go through a server or a proxy that drops DELETE bodies on the floor.
Reloading not working when deployed through a Node.js server
Have you read the deployment section of the Angular docs?
Trouble having "unnamed" tabs route
I am running into the same exact issue. I’ve searched for hours too with no answer. I want to use tab routing but I do not want to be forced to use child routes. Did you ever find a solution?
Ionic 4 routing without tabs prefix
Nothing on this in over a year? It seems silly to be forced to use child routing for ionic’s tabbed routing.
Google docs link to ionic 4 app
I would characterize this as a highly unusual design.
A much more typical plan would look like this:
-
choose a format for the essays - I would use Markdown due to its nice balance of ease of authoring, richness of expression, and ease of processing
-
decide how essays are to be categorized - do we want to group them by topic? do we need fulltext indexes of the text? do we want human-curated keywords?
-
choose a storage host - I use containerized PostgreSQL because it’s open-source, fast, and has the power of a great relational database. I know Firebase is popular. If the essays are mostly static once written, they could be stored in a vault like S3 (or the many clones), keeping only links to them in the database itself
-
write a middleware application that manages access to the essay database, responding to REST HTTP requests. I write all mine in Go using gocraft/web; I know others like PHP or Node.js.
-
write an admin webapp used to manage the document collection. most frequently this is completely separate from the client Ionic app, although in some cases they can be combined. I simply use vanilla Angular here, with a UI toolkit like angular/material.
A monolithic Google Doc sounds like a maintenance nightmare to me, as well as being heavy and wasteful to retrieve and process. Also keep in mind, especially since you mentioned app store distribution, that app stores (especially Apple) are very quick to reject “apps” that are just thin veneers over content that could just be presented as an ordinary website. Providing the ability to search, comment on, annotate, &c in addition to mere display of the essays would go a long way towards making this app seem more worthy of the name “app”, provide much more value to its users, and by extension, the blessing of app stores.
Custom selected for ion-segment-button
I have a strange situation where I’m using the ion-segment buttons to set my event.field = the selected event.options object. It works how I’d like it to EXCEPT that it doesn’t keep the button clicked highlighted as selected.
Is there a way to set the selected element in another way? event.field, once the button is selected, becomes an object. The value of the button would be equal to event.field.field OR event.options[i].field.
Can someone help me?
<ion-segment (ngModel)="event.options" selected="event.field">
<ion-segment-button (click)="changeField(d, e, i, event.options)" *ngFor="let options of event.options; let i = index" [value]="event.field">
<ion-label color="primary">{{ options.field }}</ion-label>
</ion-segment-button>
</ion-segment>
Custom selected for ion-segment-button
OOOOOOHHHHH!!! I figured it out!!!
Instead of trying to do selected=“event.field” in the ion-segment tag, I added this to the ion-segment-button tag:
[attr.checked]="event.field && event.field.field === options[i].field ? true : false"
Custom selected for ion-segment-button
ARGH! It DID fix the issue of showing which ion-segment-button was selected, but then it broke another part of my code that was supposed to show the data from the object assigned to event.field.
Custom selected for ion-segment-button
Your template syntax is wonky, and I think that’s the source of all the confusion here.
fruits = ["apple", "banana", "cherry"];
chosen = "banana";
<ion-segment [value]="chosen">
<ion-segment-button *ngFor="let fruit of fruits" [value]="fruit" [innerText]="fruit"></ion-segment-button>
</ion-segment>
I think this sounds like what you’re describing you want, and the controller’s chosen
property will always contain the active segment.
foo="bar" // literal "bar"
[foo]="bar" // value of controller's "bar" property, input binding
(foo)="bar()" // output binding to the "foo" event, call "bar()" method when it happens
…so your initial (ngModel)
is only doing the output binding (from controller to host), I think the opposite of the direction you wanted, selected="event.field"
is going to always evaluate to truthy, because the literal string "event.field"
is truthy, and have nothing to do with the variable you’re trying to reference.
The definitive guide to all this (which is, in fairness, both one of the most commonly used and least commonly understood parts of Angular) is here.
Ionic Native plugin texts not displaying System language
Hi team,
I have an app in ionic 3 having plugins like Camera and Image Picker (for Gallery).
Both works fine in iPhone/Android for taking pictures. But only 1 issue is that if Phone language is other than English (i.e. Hebrew), Gallery/Camera plugin UI texts like ‘OK’, ‘CANCEL’, ‘CAPTURE’ still shows in english keywords.
What can i do so that plugins use system languages?
Thanks,
Nirav
Ionic 4 routing without tabs prefix
Yes I agree. I don’t think there will be a solution for this right now. I have abandoned the tab system, and I am not using it because of this problem. Too bad.
RTSP - @ionic-native/streaming-media
Hello,
I am having the same problem did you manage to fix?
Migration from Angular to React
Hi @Fl0ow did you find any solution for this?
Migration from Angular to React
Hi @madhurgarg, unfortunately no, haven’t heard anything, you would think this is the kind of stuff that would get people’s attention or the Ionic team’s attention since Angular is pretty much abandoned but so many applications still rely on it
And yet… Complete radio silence from both the community and from the Ionic team.
Ionic Plugin for SQLite Dont build for Windows Platform
@mikrochipkid I am able to do the build when I remove Sqlite plugin. Its just when I install the plugin for Sqllite, it dont built. Any clue?
Changed then and catch in JavaScript promise
I’m getting the values of a table in my code with this code.
this.dbObject.executeSql("SELECT * FROM atten").then(res => {
console.log("this is responce = ", res.rows)
}).catch(err => {
console.log("this is error = ", err)
})
the then function not execute.
the catch function executes with right values of the table, don’t get any error “this is error = values”
when I remove the catch method it gets an error