Use printOutput for values and mountApp(Component) with selector app-root for live previews.
Recommended workflow
- Read the concept before editing code.
- Click Run in browser to compile TypeScript in the iframe.
- Use
printOutput(...)for terminal inspection. - For UI lessons:
const { Component, signal } = Ng;thenmountApp(AppComponent).
Important interview questions and answers
- Q: Why does this matter?
A: Use printOutput for values and mountApp(Component) with selector app-root for live previews.
Self-check
- Summarize Playground workflow in one sentence.
- What would you try next in the playground?
Challenge
First run
- Run default code.
- Confirm
typeof Ngisobject.
Done when: terminal shows Ng is available.