I've noticed in Google's results page that my website's listing details (i.e. bellow the link) displays content that is only generated during the page onload function.This surprised me as I thought Google does not index JavaScript generated content. Later I came across this post showing a way to create <title> and meta description tags using AngularJS directives (which are only interpreted during onload)! So does this actually work? I would also appreciate some reference if it does and Google indeed indexes the page after running its onload.
Strange: Google indexing onload generated content?
javascript;google index