GoConqr has a new look! Let us know what you think.

Flashcards

angularjs

Jaabiri Slim English 20 cards

Cards in this deck (20)

  1. 1DirectiveA Directive is a marker on a HTML tag that tells Angular to run or reference
    some JavaScript code
  2. 2Modules• Where we write pieces of our Angular application.
    • Makes our code more maintainable, testable, and readable.
    • Where we define dependencies for our app.
    Modules can use other Modules..
  3. 3Creating Our First Modulevar app = angular.module('store', [ ]);
  4. 4Including Our ModuleRun this module when
    the document loads.
  5. 5ExpressionsI am {{4 + 6}}
  6. 6Attaching the Controller
  7. 7controllerapp.controller('StoreController', function(){
    this.product = gem;
    });
  8. 8NgShow Directiveng-show="store.product.canPurchase"
    Will only show the element if the
    value of the Expression is true
  9. 9NgHide Directiveng-hide="store.product.soldOut"
    Will only hide the element if the
    value of the Expression is true
  10. 10ng-repeat Directive{{product.name}}
    ${{product.price}}
  11. 11Filter{{ data | filter:options }}
    {{'My Description' | limitTo:8}}
  12. 12ng-src
  13. 13ng-clickAssigning a value to tab
    Expressions define a 2-way Data Binding ...
    this means Expressions are re-evaluated when a property changes
  14. 14ng-initng-init allows us to evaluate an expression in the current scope
  15. 15ng-classng-class="{ active:tab === 3 }"
    Expression to evaluate
    If true, set class to “active”,
    otherwise nothing.
  16. 16ng-modelng-model="review.stars"
    ng-model binds the
    form element value
    to the property
  17. 17ng-submitng-submit="reviewCtrl.addReview(product)"
    ng-submit allows us to call a function when the form is submitted
  18. 18ng-includeng-include="'product-title.html'"
    ng-include is expecting a variable with the name of the file to inclu
    To pass the name directly as a string, use single quotes ('...')
  19. 19Custom Directivedefine a custom tag or attribute that is expanded or replaced
    can include Controller logic, if needed
  20. 20Reviewing our DirectiveAn Attribute Directive
    An Element Directive

Information

Description
Flashcards on angularjs, created by Jaabiri Slim on 15/09/2015.
Created by
Jaabiri Slim
Views
4
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?