Skip to content

timothylong/angularjs-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

<VirtualHost *:80 />
    DocumentRoot "Path to project folder"
    ServerName local.domain.com
    <Directory "Path to project folder">
        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^ - [L]
        RewriteRule ^ index.html [L]
    </Directory>
</VirtualHost>

Remote

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published