Added cart encryption

This commit is contained in:
Zakary Timson 2018-07-24 19:50:48 -04:00
parent 2cccac9569
commit 6881a17b50

View File

@ -13,7 +13,7 @@ import {AngularFireAuth} from '../../node_modules/angularfire2/auth';
templateUrl: 'app.component.html'
})
export class AppComponent implements OnInit {
@LocalStorage({defaultValue: []})
@LocalStorage({defaultValue: [], encryptionKey: 'HmRoBFUEVWqW5uvy'})
cart: {id: string; item: string; price: number; currency: 'CAD' | 'USD'; quantity: number}[];
constructor(