Session Data with Durandal
问题 I am just getting started with Durandal.js so excuse me for the silly quesstion... When a user makes it's first request to the app it is asked to choose a 'profile kind', and I need it to be accessible to every other view model in the web site, I first though of creating this property in the shell viewmodel, but don't how to do it. How is the best way to store data in a Session like mode in a Durandal SPA? Thanks! 回答1: Create an amd module for what data you need to store. Then just require