concept expression in category angular

appears as: expressions, expression, n expression, expression
AngularJS in Action

This is an excerpt from Manning's book AngularJS in Action.

This is a perfect segue for moving beyond binding to properties and learning how to bind to expressions. You can also make methods available to the view by declaring them on the controller. For instance, we’ll define a method called main.createStory that pushes a new story object into the main.stories array:

The built-in AngularJS directives can’t possibly account for every real-world scenario, and so the AngularJS team provided a way to address this by allowing you to write your own custom directives. This is where the relationship with AngularJS expands beyond being just about productivity to encompass expression. It’s easy to get excited about writing HTML when you realize that you can literally create any tag or attribute you want to express whatever it is you’re trying to accomplish. We’ll get into directives in a later chapter, but this discussion brings us back full circle: once you learn to write directives, you’ll have a moment of realization where you realize what those funny tags you used when you started with AngularJS actually are, and how they work. AngularJS is essentially using itself to do most of the heavy lifting for you!

3.4. Properties and expressions

At the core of this chapter, we’re really trying to demonstrate how to do two things: bind to properties and execute expressions. We’ll show the various ways to do that as we build out the storyboard view in Angello.