SHARE
TWEET

Untitled

a guest Dec 18th, 2014 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Controller :
  2.  
  3. $scope.listing_summary = '';
  4.  
  5. $scope.send = function (form) {
  6.  
  7.       // Check that the form is valid before doing anything
  8.       if (form.$valid) {
  9.         console.log(1, $scope.listing_summary);
  10.       }
  11. };
  12.  
  13. Template :
  14.  
  15. form(name='form')
  16.         h1.form-label(translate='') Listing summary
  17.         div {{ listing_summary }}
  18.         textarea.single-input-form(type='text'
  19.                                    name='summary'
  20.                                    maxlength='300'
  21.                                    placeholder='{{ "Tap to enter" | translate }}'
  22.                                    ng-model='listing_summary')
  23.  
  24.       button(ng-click='send(form)')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top