This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AssetState } from './asset.state'; | |
import { AssetActions, AssetActionTypes, GetAllSuccess, GetSuccess, CreateSuccess, UpdateSuccess } from './asset.actions'; | |
import { createFeatureSelector, createSelector } from '@ngrx/store'; | |
import { AppState } from '../app.state'; | |
const initialStates: AssetState = { | |
assets: [{ | |
id: '1', | |
transformerName: 'xyz-123456789', | |
location: 'German', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Action } from '@ngrx/store'; | |
import { Asset } from '../../core/models/asset/asset'; | |
/** | |
* Enum for asset action types. | |
*/ | |
export enum AssetActionTypes { | |
GetAll = '[asset] GetAll', | |
GetAllSuccess = '[asset] GetAll Success', | |
Get = '[asset] Get', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { Action } from '@ngrx/store'; | |
import { Actions, Effect, ofType } from '@ngrx/effects'; | |
import { Observable, of } from 'rxjs'; | |
import { switchMap, map, catchError } from 'rxjs/operators'; | |
import * as AssetActions from './asset.actions'; | |
import { AssetService } from '../../core/service/asset.service'; | |
import { Asset } from '../../core/models/asset/asset'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<md-input-container class="admin-form"> | |
<input md-input placeholder="Block Title" nfNoSpaces [(ngModel)]="block.title" id="block-{{ block.id }}-input-name" name="title" | |
#title="ngModel"> | |
<md-hint [ngStyle]="{'color': 'red'}" align="start" *ngIf="!title.valid && !title.pristine">Title is required.</md-hint> | |
</md-input-container> | |
Be sure to include ref to directive in module declarations array. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "nickelled", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "NODE_ENV=development nodemon app.js", | |
"test": "NODE_ENV=test node_modules/.bin/jasmine-node spec/server/", | |
"debug": "NODE_ENV=development node debug app.js" | |
}, | |
"devDependencies": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "frontend", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"awesome-bootstrap-checkbox": "^1.0.0", | |
"axios": "^0.18.0", | |
"bootstrap": "4.0.0-beta.2", | |
"calendar-base": "^0.3.0", | |
"classnames": "^2.2.5", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "lilypadv2", | |
"version": "0.0.0", | |
"license": "MIT", | |
"scripts": { | |
"ng": "ng", | |
"start": "node server.js", | |
"build:dev": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build && gzipper --verbose ./dist && node version-update.js", | |
"build:prod": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod && node version-update.js", | |
"test": "ng test", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "in-home-angular", | |
"short_name": "in-home-angular", | |
"theme_color": "#1976d2", | |
"background_color": "#fafafa", | |
"display": "standalone", | |
"scope": "/", | |
"start_url": "/", | |
"icons": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "in-home-angular", | |
"version": "0.0.0", | |
"scripts": { | |
"ng": "ng", | |
"start": "ng serve", | |
"build": "ng build", | |
"test": "ng test", | |
"lint": "ng lint", | |
"e2e": "ng e2e" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"index": "/index.html", | |
"assetGroups": [ | |
{ | |
"name": "app", | |
"installMode": "prefetch", | |
"resources": { | |
"files": [ | |
"/favicon.ico", | |
"/index.html", |
NewerOlder