IDEA's extra components and services built on Ionic
MPL-2.0 License
Published by uatisdeproblem almost 2 years ago
viewMode
.Published by uatisdeproblem almost 2 years ago
Published by uatisdeproblem almost 2 years ago
The cloud app needs to be updated to Angular 15 and Capacitor 4.
Please refer to this guide to upgrade.
Published by uatisdeproblem about 2 years ago
ionicExtraModules
array in the environments
file of a project now needs to include (when needed) the variables
entry (e.g. ionicExtraModules[..., 'variables']
) — previously it was implicitly included. This configuration allows the automatic loading of the variables/xx.json
translations dictionary file.Published by uatisdeproblem about 2 years ago
Published by uatisdeproblem about 2 years ago
Published by uatisdeproblem about 2 years ago
ngModel
approach to the date
attribute; e.g. instrad of (select)="yourDateField=$event"
and (selectISO)="yourDateField=$event"
use [(date)]=yourDateField
.
select
output (trigger) is now named dateChange
(if needed).selectISO
output (trigger) has been removed.epochISOString
format, set the attribute useISOFormat = true
.Published by uatisdeproblem about 2 years ago
Published by uatisdeproblem about 2 years ago
Published by uatisdeproblem over 2 years ago
Published by uatisdeproblem over 2 years ago
selectISO
.Published by uatisdeproblem over 2 years ago
fetch
(browser) instead of Angular's HTTP module.
providedIn: 'root'
.init
), avoiding boilerplate code.Published by uatisdeproblem over 2 years ago
@capacitor/browser
).Published by uatisdeproblem almost 3 years ago
Published by uatisdeproblem almost 3 years ago
Published by uatisdeproblem almost 3 years ago
await
in front of loading.show()
.
Published by uatisdeproblem about 3 years ago
The projects updating the IDEA Ionic Extra modules to this version need to move their front-end configuration from src/assets/configs/idea-config.js
(to delete) to the src/environments
files. E.g.
export const environment = {
idea: {
project: 'cloud-app-starter',
ionicExtraModules: ['common', 'auth'],
...
}
...
}
Then, they need to add the following configuration in the front-end/tsconfig.json
file:
{
...
"compilerOptions": {
...
"paths": {
...
"@env": ["../front-end/src/environments/environment.ts"]
}
...
}
To refer to the environment variables in the project, you can do as follows:
import { environment as env } from '@env';
myFun() {
console.log(env.idea.project);
}
Follow the instructions in each module, to know which variables are needed (anyway, they didn't change).
For a full example, take a look at the cloud-app
project in the https://github.com/iter-idea/starters repo.
Published by uatisdeproblem over 3 years ago
Published by uatisdeproblem over 3 years ago
userDetails
provided.Published by uatisdeproblem over 3 years ago
The versions of this lib's modules will now advance together (Angular's standard).
Therefore, when we need to publish changes to one module, we must publish a new version for each module, through the publish.sh
script.