title: NSUserDefaults / SharedPreferences do we have any thing similar in TypeScript
body: <p>i'm new to Angularjs-2.3 TypeScript. i have a scenario which that i needs to save userId in the app, So that can be access any where in the app. </p>
  
  <p>if i was using android or iOS i will use those NSUserDefaults and SharedPreferences. How can i do the same thing in the TypeScript for native apps for android and iOS. Thank you.</p>