Skip to content

Instantly share code, notes, and snippets.

@rpinna

rpinna/order.ts Secret

Last active Sep 21, 2018
Embed
What would you like to do?
@IronEncrypt({dataClassId = 'top-secret'})
export class Order {
public date = new Date();
constructor(
public title: string,
public message: string,
public id?: number
) {
this.id = id || Utils.randomInt();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment