Skip to content

Commit

Permalink
Set language to readme scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Zequez committed Jan 6, 2014
1 parent 10eb237 commit b31f49b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ClassToAngular is a an ***experimental*** tool to use CoffeeScript classes to cr

Instead of doing:

```
```coffeescript
angular.module('ClassApp', []).directive 'bananaSplit', ($timeout)->
restrict: 'E'
link: (scope, element, attrs)->
Expand All @@ -24,7 +24,7 @@ It may look fine for now, but start to make a bigger app and your link function
Besides, it doesn't look Coffeescripty at all!
Instead you can do:

```
```coffeescript
class BananaSplitDirective
@restrict: 'E'

Expand Down Expand Up @@ -56,6 +56,9 @@ Does it have a big performance impact? I don't think so! But I haven't tested ye

The thing is, it shouldn't, since most of the extra processing is made on the startup of the application! If someone has a better and faster idea, please say so!

Live example
####################
Want to see an example? Head to the example folder. Want to see it live. [Head to this link](http://jsbin.com/uTebeQoH/14/edit)

ToDo
===============
Expand Down

0 comments on commit b31f49b

Please sign in to comment.