Always test your pages using Google’s own tools and third-party resources to view the rendered HTML to make sure all your content is showing up. Google has come a long way with rendering JavaScript.
Google updated its JavaScript SEO documentation to warn against using a noindex tag in the original page code on JavaScript pages. Google wrote, "if you do want the page indexed, don't use a noindex ...