Last active
August 29, 2015 14:22
-
-
Save probablykabari/c10333de6be820e41bbf to your computer and use it in GitHub Desktop.
Foundation Apps with Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"directory": "vendor/assets/bower_components" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Angular | |
#= require angular/angular.js | |
#= require angular-animate/angular-animate.js | |
#= require angular-ui-router/release/angular-ui-router.js | |
# Foundation Components | |
#= require fastclick/lib/fastclick.js | |
#= require hammerjs/hammer.js | |
#= require tether/tether.js | |
#= require viewport-units-buggyfill/viewport-units-buggyfill.js | |
#= require foundation-apps/dist/js/foundation-apps.js | |
#= require foundation-apps/dist/js/foundation-apps-templates.js | |
config = ($stateProvider, $urlProvider, $locationProvider, IconicProvider) -> | |
$urlProvider.otherwise('/') | |
$locationProvider.html5Mode | |
enabled: false | |
requireBase: false | |
$locationProvider.hashPrefix('!') | |
# change iconic path so icons work | |
IconicProvider.setAssetPath('/assets/foundation-apps/iconic') | |
run = -> | |
FastClick.attach(document.body) | |
# Define application | |
angular.module('teachers.application', [ | |
'ui.router', | |
'ngAnimate', | |
'foundation', | |
'foundation.dynamicRouting', | |
'foundation.dynamicRouting.animations' | |
]).config(config).run(run) | |
config.$inject = ['$stateProvider', '$urlRouterProvider', '$locationProvider', 'IconicProvider'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is what got Foundation Apps working for me with Rails.