Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit cb5ce98

Browse files
cironunesjbdeboer
authored andcommitted
docs($resource): Added an installation section.
1 parent 99f3b70 commit cb5ce98

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ngResource/resource.js

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
* The returned resource object has action methods which provide high-level behaviors without
1919
* the need to interact with the low level {@link ng.$http $http} service.
2020
*
21+
* # Installation
22+
* To use $resource make sure you have included the `angular-resource.js` that comes in Angular
23+
* package. You also can find this stuff in {@link http://code.angularjs.org/ code.angularjs.org}.
24+
* Finally load the module in your application:
25+
*
26+
* angular.module('app', ['ngResource']);
27+
*
28+
* and you ready to get started!
29+
*
2130
* @param {string} url A parameterized URL template with parameters prefixed by `:` as in
2231
* `/user/:username`. If you are using a URL with a port number (e.g.
2332
* `http://example.com:8080/api`), you'll need to escape the colon character before the port

0 commit comments

Comments
 (0)