Changed how stripe-form detects values
Rather than depend upon the scope to be named with specific values, stripeForm can now pick off values by the naming of form elements.
I.e. Rather than depending upon ng-model="number", if there is a field in the form with the name="number" it will work.
<input type="text"
name="number" class="input-block-level" ng-model="payment.number" payments-validate="card" payments-format="card" payments-type-model="type" ng-class="myForm.number.$card.type"/>
This is a much more Angular-ish approach.
Additionally added main to bower.json
Can you update the example to include the name="number" field? As it is, the example is not showing the logo. Thank you so much. I edited the example and can push but it just adding the name attribute to the above element.
Thank you so much. This is really great work :)
Wait... I believe I did already... Did this not work for you?
Or did you mean update the README?
In the index.html of your example you have:
The super cool credit card logo appearing in the input field does not work. However if you add name="number" to this field it works amazingly.
I'd love to see this merged in.
+1 Would be great to have this merged