Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhildred/jquerymobileangular
dangerous friends?????
https://github.com/rhildred/jquerymobileangular
Last synced: 14 days ago
JSON representation
dangerous friends?????
- Host: GitHub
- URL: https://github.com/rhildred/jquerymobileangular
- Owner: rhildred
- Created: 2016-02-24T19:16:04.000Z (almost 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-02-25T01:30:53.000Z (almost 9 years ago)
- Last Synced: 2024-04-14T14:03:10.016Z (9 months ago)
- Language: HTML
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#[JQuery mobile and Angular](https://github.com/rhildred/jQueryMobileAngular)
In a previous experience, I felt that I had to do some unnatural things to make these libraries play well together. Now I am not sure if it was suspiciousness, or if the libraries have improved. One of the things that I like about jQuery Mobile, Angular and Twitter bootstrap is the way that they are declarative. In this simple example I have added the dependencies:
```
```
I made 2 pages:
```
Two
this is page 2
Two
```
Finally I put some form controls on page 1. A couple of regular input fields:
```
Amount:
Tip:
```
A flip-switch:
```
Select-based:Bye
Hi```
And a check-box:
```
Agree to the terms:
I agree```
On the second page, I did a calculation on the tip, and redisplayed the amount.
`{{amount}} with tip your purchase is {{(amount * (1 + tip/100)).toFixed(2)}}`
This seems very natural to me. All, so far, without any imperative code.