--------------------------------------------------------------------------------
/src/app/shared/ion2-calendar/index.ts:
--------------------------------------------------------------------------------
1 | export * from './calendar.model';
2 | export { CalendarModal } from './components/calendar.modal';
3 | export { CalendarWeekComponent } from './components/calendar-week.component';
4 | export { MonthComponent } from './components/month.component';
5 | export { CalendarComponent } from './components/calendar.component';
6 | export { CalendarModule } from './calendar.module';
7 | export { CalendarController } from './calendar.controller';
8 |
--------------------------------------------------------------------------------
/sh/release.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [ $# -ne 1 ]; then
4 | echo "Syntax: release [VERSION]"
5 | exit 1
6 | fi
7 |
8 | VERSION=$1
9 |
10 | # Create release
11 | git flow release start $VERSION || exit 1
12 | GIT_MERGE_AUTOEDIT=no git flow release finish -m $VERSION $VERSION
13 |
14 | # Publish release
15 | git push origin HEAD --tags
16 |
17 | # Merge release into develop
18 | git checkout develop
19 | git merge master
20 |
21 | # Bump version
22 | echo "Bump next version"
--------------------------------------------------------------------------------
/src/app/pages/home/home.page.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { DataService } from '@services/data.service';
3 |
4 | @Component({
5 | selector: 'page-home',
6 | templateUrl: 'home.page.html',
7 | })
8 | export class HomePage {
9 | cacheData = '';
10 | constructor(public dataservice: DataService) {}
11 |
12 | testCache() {
13 | this.dataservice.testCachedData().subscribe(num => {
14 | this.cacheData = num;
15 | });
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/app/pages/list/redux/ngrxtodo.reducer.ts:
--------------------------------------------------------------------------------
1 | import { ActionReducerMap } from '@ngrx/store';
2 |
3 | import { TodosReducer } from './todo/todo.reducer';
4 | import { FilterReducer } from './filter/filter.reducer';
5 | import { Todo } from './todo/todo.model';
6 |
7 | export interface AppState {
8 | todos: Todo[];
9 | filter: string;
10 | }
11 |
12 | export const ngrxtodoReducer: ActionReducerMap