kRouter

AngularJS router.
0 people use it
Author: 71faa1d55ef22af8be77ff4d228e1195?d=https%3a%2f%2fidenticons.github.com%2f7b9c29c9c46836dae9198fa083c606a3 kelp404

kRouter Build Status

Kelp
MIT License

This is a router of AngularJS in CoffeeScript.
There is no # in the Url.
demo site

$kRouter

register

go

state

events

$rootScope.$on '$stateChangeBegin' coffeescript broadcastBegin = -> $rootScope.$broadcast '$stateChangeBegin'

$rootScope.$on '$stateChangeSuccessful' coffeescript broadcastSuccessful = -> $rootScope.$broadcast '$stateChangeSuccessful'

$rootScope.$on '$broadcastFailed' ```coffeescript broadcastFailed = (args={}) -> $rootScope.$broadcast '$stateChangeFailed', args

```

Example



Unit Test

run localhost server then go to /test/SpecRunner.html

Development

CoffeeScript

File Watchers:

Watcher Settings | value :---------:|:---------: Program | /usr/local/bin/coffee Arguments | --compile $FileName$ Environment variables | PATH=/usr/local/bin/

Output paths | $FileNameWithoutExtension$.js

Compass

File Watchers:

Watcher Settings | value :---------:|:---------: Program | /Users/Kelp/.rvm/gems/ruby-1.9.3-p448/bin/compass Arguments | compile Environment variables | GEM_PATH:/Users/Kelp/.rvm/gems/ruby-1.9.3-p448:/Users/Kelp/.rvm/gems/ruby-1.9.3-p448@global Output paths | $FileNameWithoutExtension$.css


Closure Compiler

You could download compiler form Google Code.

External Tools:

Settings | value :---------:|:---------: Program | java Parameters | -jar /Volumes/Data/tools/closure-compiler/compiler.jar --compilation_level SIMPLE_OPTIMIZATIONS --js $FileName$ --js_output_file $FileNameWithoutExtension$.min.$FileExt$

Working directory | $FileDir$

Binding JavaScript, CSS


comments powered by Disqus
This page was last updated almost 4 years ago.