Book Image

Learning Yeoman

By : Jonathan Spratley
Book Image

Learning Yeoman

By: Jonathan Spratley

Overview of this book

Table of Contents (17 chapters)
Learning Yeoman
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Modern Workflows for Modern Webapps
Index

Anatomy of an Angular project


Generally in a single page application (SPA), you create modules that contain a set of functionality, such as a view to display data, a model to store data, and a controller to manage the relationship between the two. Angular incorporates the basic principles of the MVC pattern into how it builds client-side web applications.

The major Angular concepts are as follows:

  • Templates: A template is used to write plain HTML with the use of directives and JavaScript expressions

  • Directives: A directive is a reusable component that extends HTML with the custom attributes and elements

  • Models: A model is the data that is displayed to the user and manipulated by the user

  • Scopes: A scope is the context in which the model is stored and made available to controllers, directives, and expressions

  • Expressions: An expression allows access to variables and functions defined on the scope

  • Filters: A filter formats data from an expression for visual display to the user

  • Views: A view...