¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

angularjs

Jaabiri Slim Inglés 20 fichas

Fichas del conjunto (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

Información

Descripción
Fichas sobre angularjs, creado por Jaabiri Slim el 15/09/2015.
Creado por
Jaabiri Slim
Visitas
4
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?