1. components, encapsulates the template, data and behavior of a view. What is a view?
More accurately - View component.
Root component.
Navbar, sidebar, courses
App - Navbar
- Courses - course course, review
- sidebar
export class RatingComponent{
averageRating: number;
setRating(value){
…
}
}
decoupled from DOM
title = “Hello”
{} service Node, ASP
1. Router - responsible for navigation
will figure which component to present to user
1. Directive - modify DOM elements and/or extend their behavior
e.g.
No comments:
Post a Comment