Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rhildred/jquerymobileangular

dangerous friends?????
https://github.com/rhildred/jquerymobileangular

Last synced: 14 days ago
JSON representation

dangerous friends?????

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:

```




One




this is page 1

Next


One






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.