A demo application built on top of Framework7, AngularJS, SASS and TypeScript. Feel free to download, modify, fork or comment. This app will list upcoming and current movies from theaters and give you detailed information
This example is not best practice on how to use Framework7, it’s more of an experiment to see how it works with Angular and TypeScript. Framework7 has an own templating engine called Template7, so Angular is not mandatory (but it's also not harmful!). The important part is that F7 is designed to work with JavaScript, rather than TypeScript. So, if you’re new to Framework7, do not assume that this example is the way you should create F7 apps! It was an experiment to see what happens if you combine these technologies. After all I can say that I wouldn’t use TypeScript with F7 again, just stick to plain old JavaScript. If you know how to use Angular, then you should be safe using it. If you don’t know Angular, then use Template7.
If you want to instead learn how to use Framework7 with AngularJS the proper way, check out my video screencast: http://www.timo-ernst.net/blog/2015/11/05/video-screencast-how-to-use-framework7-with-angularjs/
If you feel adventurous enough to dive into this experiement read on :-)
Check out working demo here: http://www.timo-ernst.net/misc/f7angulardemo
- Install npm (http://www.npmjs.com)
- Install Grunt (http://www.gruntjs.com)
- cd to project folder
- From cmd run
npm install
- Then call
grunt compile
- Copy the content of
/build
to htdocs of your webserver
Go to src
folder and edit the following files:
- HTML:
.dev.html
files - Styles:
.sass
files - Scripts:
.ts
files (Typescript, not JavaScript!)
Then call grunt compile
again and check the result in /build
folder.
Detailed explanation of the source code: http://timo-ernst.net/blog/2015/04/02/experiment-an-iphone-app-built-with-framework7-typescript-and-angularjs/
This app is based on top of this template: https://github.com/valnub/Framework7-Typescript-Template
For some people the template mentioned above is a little to complicated because it relies on npm and grunt. If you want an alternative with just pure html, css and javascript without a build process involved you can try this alternative: https://github.com/valnub/Framework7-Pure-Angular-Template or watch my video screencast tutorial: http://www.timo-ernst.net/blog/2015/11/05/video-screencast-how-to-use-framework7-with-angularjs/