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 { AppDataService, AppNotificationService } from '../services'; | |
import { AppError } from '../entities'; | |
import { Injectable, Injector, ErrorHandler } from '@angular/core'; | |
@Injectable() | |
export class AppErrorHandler implements ErrorHandler { | |
constructor(private injector: Injector) { } |
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 {Component,Input} from '@angular/core'; | |
@Component({ | |
selector: 'item-details', | |
templateUrl: 'item-details.html', | |
}) | |
export class ItemDetails { | |
@Input() item; | |
@Input() notifyItemProcessed: () => void; |
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
<div> | |
<h3>Order Processing System</h3> | |
<div> | |
<label>Order # {{order.id}}</label> | |
<label>Order Date {{order.date}}</label> | |
</div> | |
.... | |
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 {Component,Input,SimpleChanges} from '@angular/core'; | |
@Component({ | |
selector: 'item-details', | |
templateUrl: 'item-details.html', | |
}) | |
export class ItemDetails { | |
private _item; // private property _item |
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 {Component,Input, OnChanges, SimpleChanges, SimpleChange} from '@angular/core'; | |
@Component({ | |
selector: 'item-details', | |
templateUrl: 'item-details.html', | |
}) | |
export class ItemDetails implements OnChanges { | |
private _item; | |
get item(): any { |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"module":"es2015", | |
"target": "es2015", | |
"jsx": "react", | |
"rootDir": "src", | |
"outDir": "build", | |
"allowSyntheticDefaultImports": true, | |
"noImplicitAny": true, | |
"sourceMap": true, |
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
{ | |
"requestContext": { | |
"identity": { | |
"cognitoIdentityId": "TEST-LOCAL-USER-A" | |
} | |
} | |
} | |
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 { APP_CONSTANTS } from '../../config/app_constants'; | |
import getResponse from '../../utils/responseUtils'; | |
import * as AWS from "aws-sdk"; | |
const dynamoDb = new AWS.DynamoDB.DocumentClient({ | |
'region': 'us-east-1' | |
}); | |
export async function main(event, context, callback) { | |
const params = { |
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 { APP_CONSTANTS } from '../../config/app_constants'; | |
import getResponse from '../../utils/responseUtils'; | |
import * as AWS from "aws-sdk"; | |
const dynamoDb = new AWS.DynamoDB.DocumentClient({ | |
'region': 'us-east-1' | |
}); | |
export async function main(event , context, callback){ | |
const requestData = JSON.parse(event.body); |
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
{ | |
"body": "{ \"word\": \"stranger-1\", \"meaning\": \"someone whom you don't know or who doesn't belong in a specific place\", \"example\": \"Don't talk to strangers.-1\" }", | |
"requestContext": { | |
"identity": { | |
"cognitoIdentityId": "TEST-LOCAL-USER-A" | |
} | |
}, | |
"pathParameters": { | |
"id": "replace-this-with-the-id-of-an-item-you-have-in-your-dynamoDb-table" | |
} |
OlderNewer