Skip to content

Commit 194744c

Browse files
committed
demo
1 parent ee79527 commit 194744c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+426
-955
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.gitignore

100644100755
Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
.idea
22
.DS_Store
33
node_modules
4-
jspm_packages
5-
link-checker-results.txt
6-
**/*npm-debug.log.*
7-
*.js
8-
*.js.map
9-
e2e/**/*.js
10-
e2e/**/*.js.map
11-
_test-output
12-
_temp
13-
14-
!karma*.js
15-
!protractor*.js
16-
!systemjs.config.js
17-
!wallaby.js
18-
19-
typings
20-
factories
21-
22-
# misc
23-
*.log
24-
.history
25-
*.d.ts
26-
*.metadata.json
4+
coverage
5+
npm-debug.log

.npmignore

Lines changed: 0 additions & 18 deletions
This file was deleted.

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
3+
node_js:
4+
- '6'
5+
6+
script: npm test
7+
8+
notifications:
9+
email: false

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Matt Lewis
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

100755100644
File mode changed.

app/app.component.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/app.component.spec.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

app/app.component.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/app.module.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/app.routes.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/home/home.component.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/home/home.component.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/home/home.component.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/home/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/main.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/no-content/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/no-content/no-content.component.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/restangular.config.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

app/styles.css

Lines changed: 0 additions & 142 deletions
This file was deleted.

demo/demo.component.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {Component} from "@angular/core";
2+
import {Restangular} from "./../src";
3+
4+
@Component({
5+
selector: 'demo-app',
6+
styles: [``],
7+
template: `
8+
<div class="text-center">
9+
DEMO
10+
</div>
11+
`
12+
})
13+
export class Demo {
14+
constructor(public restangular: Restangular) {
15+
restangular.one('users', 2).get()
16+
.subscribe(res=>{
17+
18+
});
19+
}
20+
}

0 commit comments

Comments
 (0)