LiJell's 성장기

Angular Files 본문

Front-End/Angular & TypeScript

Angular Files

All_is_LiJell 2022. 6. 2. 22:04
반응형
  • In Angular, each component has at least 4 files that work in harmony together.
    • app.component.css
    • app.component.html
      • the view
        • HTML file that receives variables from the component and displays them
    • app.component.ts
      • the component
        • where variables are declared and modified
    • app.module.ts

  • COMPONENT
name = "Lime Jelly";
  • VIEW
Hello, {{name}}!
  • Result

Hello, Lime Jelly


  • The double curly braces around {{name}} demonstrates what we call interpolation. Interpolation is the insertion of variable content from the component into the view.
반응형

'Front-End > Angular & TypeScript' 카테고리의 다른 글

Arrays and Iteration  (0) 2022.06.02
Custom Types  (0) 2022.05.26
Intro Typescript  (0) 2022.05.26
HTTP  (0) 2022.05.26
The Stack  (0) 2022.05.26
Comments