OCU Test Day 1 Review Flashcards
How would you describe a component?
A TypeScript Class responsible for displaying data to the user and collecting input from the user.
What do you need to do to make your component recognized by Angular?
(nothing, if you’re using CLI - because CLI does this for us - BUT if not:)
Import it into the NgModule and ensure it’s in the declarations array
What’s the Angular Style Guide’s guide to naming conventions for components with multiple words?
component-name.component.ts
component-name.component.html
component-name.component.css
firstword - secondword . artifact . filetype
What is the command in Angular CLI to make your browser open automatically?
ng serve –open
or npm start –open
Is Angular geared toward Single Page Applications or enhancing traditional applications?
SPAs!
Will the setup from Angular CLI automatically reload the browser every time changes are made?
Yes, each time you save… in theory. Sometimes it has hiccups, but that’s the idea.
How do you signify template literals in JavaScript? (or string interpolation)
backticks! ` `