Angular
Fundamentals of Angular Directives - What is Modularity?

Solution: Decomposing mlb.com into Directives

Suggested directives for mlb.com

Solution

One possible solution is to identify the following directives on the mlb.com site:

  • NavbarDirective displays the top navbar
  • NewsDirective displays bulleted list of recent news stories
  • StandingsDirective displays the standings for each league
  • LeagueStandingsDirective displays the standings for a specified league
  • CurrentGameDirecrive displays the stats for a current game
  • ScoresSnapshotDirective displays the scores of recent games
  • RecentVideoDirective displays a recent video clip
  • RecentNewsDirective displays a recent news story