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

https://github.com/timothylong/angularjs-starter-kit

A basic AngularJS application, including routes, controllers, constants, HTML5 History API, and more...
https://github.com/timothylong/angularjs-starter-kit

angular starter-kit

Last synced: about 2 months ago
JSON representation

A basic AngularJS application, including routes, controllers, constants, HTML5 History API, and more...

Awesome Lists containing this project

README

          

# AngularJS Starter Kit

A basic introduction to AngularJS, including routes, controllers, constants, HTML5 History API, and page transitions.

## Goals

- Improve overall file and application organization
- Clearer documentation
- Probably even more things, but TBD

## Server Support

To get full support on pushState URLs, a server side rewrite is necessary. I use an Apache server, so here's the wizardry for that:

**Local**

~~~~

DocumentRoot "Path to project folder"
ServerName local.domain.com

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^ index.html [L]

~~~~

**Remote**

~~~~

RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]

~~~~