Skip to content

Commit 2a1f7f4

Browse files
authored
Add files via upload
1 parent d4fd5c4 commit 2a1f7f4

File tree

14 files changed

+397
-0
lines changed

14 files changed

+397
-0
lines changed

src/app/app.component.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Component } from '@angular/core';
2+
import { Platform } from 'ionic-angular';
3+
import { StatusBar } from '@ionic-native/status-bar';
4+
import { SplashScreen } from '@ionic-native/splash-screen';
5+
6+
import { HomePage } from '../pages/home/home';
7+
@Component({
8+
templateUrl: 'app.html'
9+
})
10+
export class MyApp {
11+
rootPage:any = HomePage;
12+
13+
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
14+
platform.ready().then(() => {
15+
// Okay, so the platform is ready and our plugins are available.
16+
// Here you can do any higher level native things you might need.
17+
statusBar.styleDefault();
18+
splashScreen.hide();
19+
});
20+
}
21+
}
22+

src/app/app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<ion-nav [root]="rootPage"></ion-nav>

src/app/app.module.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { BrowserModule } from '@angular/platform-browser';
2+
import { ErrorHandler, NgModule } from '@angular/core';
3+
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
4+
import { SplashScreen } from '@ionic-native/splash-screen';
5+
import { StatusBar } from '@ionic-native/status-bar';
6+
7+
import { MyApp } from './app.component';
8+
import { HomePage } from '../pages/home/home';
9+
10+
@NgModule({
11+
declarations: [
12+
MyApp,
13+
HomePage
14+
],
15+
imports: [
16+
BrowserModule,
17+
IonicModule.forRoot(MyApp)
18+
],
19+
bootstrap: [IonicApp],
20+
entryComponents: [
21+
MyApp,
22+
HomePage
23+
],
24+
providers: [
25+
StatusBar,
26+
SplashScreen,
27+
{provide: ErrorHandler, useClass: IonicErrorHandler}
28+
]
29+
})
30+
export class AppModule {}

src/app/app.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// http://ionicframework.com/docs/v2/theming/
2+
3+
4+
// App Global Sass
5+
// --------------------------------------------------
6+
// Put style rules here that you want to apply globally. These
7+
// styles are for the entire app and not just one component.
8+
// Additionally, this file can be also used as an entry point
9+
// to import other Sass files to be included in the output CSS.
10+
//
11+
// Shared Sass variables, which can be used to adjust Ionic's
12+
// default Sass variables, belong in "theme/variables.scss".
13+
//
14+
// To declare rules for a specific mode, create a child rule
15+
// for the .md, .ios, or .wp mode classes. The mode class is
16+
// automatically applied to the <body> element in the app.

src/app/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2+
3+
import { AppModule } from './app.module';
4+
5+
platformBrowserDynamic().bootstrapModule(AppModule);

src/assets/icon/favicon.ico

1.93 KB
Binary file not shown.

src/declarations.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
Declaration files are how the Typescript compiler knows about the type information(or shape) of an object.
3+
They're what make intellisense work and make Typescript know all about your code.
4+
5+
A wildcard module is declared below to allow third party libraries to be used in an app even if they don't
6+
provide their own type declarations.
7+
8+
To learn more about using third party libraries in an Ionic app, check out the docs here:
9+
http://ionicframework.com/docs/v2/resources/third-party-libs/
10+
11+
For more info on type definition files, check out the Typescript docs here:
12+
https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html
13+
*/
14+
declare module '*';

src/index.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html lang="en" dir="ltr">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Ionic App</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
7+
<meta name="format-detection" content="telephone=no">
8+
<meta name="msapplication-tap-highlight" content="no">
9+
10+
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
11+
<link rel="manifest" href="manifest.json">
12+
<meta name="theme-color" content="#4e8ef7">
13+
14+
<!-- cordova.js required for cordova apps -->
15+
<script src="cordova.js"></script>
16+
17+
<!-- un-comment this code to enable service worker
18+
<script>
19+
if ('serviceWorker' in navigator) {
20+
navigator.serviceWorker.register('service-worker.js')
21+
.then(() => console.log('service worker installed'))
22+
.catch(err => console.error('Error', err));
23+
}
24+
</script>-->
25+
26+
<link href="build/main.css" rel="stylesheet">
27+
28+
</head>
29+
<body>
30+
31+
<!-- Ionic's root component and where the app will load -->
32+
<ion-app></ion-app>
33+
34+
<!-- The polyfills js is generated during the build process -->
35+
<script src="build/polyfills.js"></script>
36+
37+
<!-- The bundle js is generated during the build process -->
38+
<script src="build/main.js"></script>
39+
40+
</body>
41+
</html>

src/manifest.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "Ionic",
3+
"short_name": "Ionic",
4+
"start_url": "index.html",
5+
"display": "standalone",
6+
"icons": [{
7+
"src": "assets/imgs/logo.png",
8+
"sizes": "512x512",
9+
"type": "image/png"
10+
}],
11+
"background_color": "#4e8ef7",
12+
"theme_color": "#4e8ef7"
13+
}

src/pages/home/home.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<ion-header>
2+
<ion-navbar>
3+
<ion-title>
4+
Array Aktionen
5+
</ion-title>
6+
</ion-navbar>
7+
</ion-header>
8+
9+
<ion-content padding>
10+
Sortierte Liste:
11+
<ion-row *ngFor="let num of nList; let i = index; ">
12+
{{num}}
13+
</ion-row>
14+
<br><hr>
15+
formatierte Liste über map:
16+
<ion-row *ngFor="let user of fUsers; let i = index; ">
17+
{{user}}
18+
</ion-row>
19+
<br><hr>
20+
Filter-Liste nach M:
21+
<ion-row *ngFor="let prod of fproducts; let i = index; ">
22+
{{prod}}
23+
</ion-row>
24+
<br><hr>
25+
Filter-Liste nach AMO:
26+
<ion-row *ngFor="let prod of fproducts2; let i = index; ">
27+
{{prod.schar}} <br>
28+
{{prod.plist}}
29+
</ion-row>
30+
<br><hr>
31+
Aufsummieren mit reduce:
32+
<ion-row *ngFor="let price of cartItemPrices; let i = index; ">
33+
{{price}} <br>
34+
</ion-row>
35+
<ion-item>
36+
{{summe}}
37+
</ion-item>
38+
<p>
39+
If you get lost, the <a href="http://ionicframework.com/docs/v2">docs</a> will be your guide.
40+
</p>
41+
</ion-content>

0 commit comments

Comments
 (0)