AngularJS version of Secrets