Skip to content

Instantly share code, notes, and snippets.

@cgkio
Created October 17, 2013 19:46
Show Gist options
  • Save cgkio/7031052 to your computer and use it in GitHub Desktop.
Save cgkio/7031052 to your computer and use it in GitHub Desktop.
Generates an Angular.js resource with local data.
$ steroids create APP_NAME  

$ cd APP_NAME  

$ steroids generate ng-resource RESOURCE_NAME

RESOURCE_NAME of 'car' will result in the following files:

app/controllers/car.js
app/models/car.js
app/views/car/index.html
app/views/car/show.html
app/views/layouts/car.html
www/data/car.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment