I want to allow the users of my web app to create their own custom JS, which should be stored in a string and be parsed (preferably without having to use the evil eval). I am using Angular.
What is the best way to do this and is there any risk when the users JS is only stored in localStorage and not shared with other users?