UNPKG
@stayradiated/ngreact
Version:
latest (0.2.4)
0.2.4
0.2.3
0.2.2
0.2.1
Use React Components in Angular
davidchang.github.io/ngReact/
davidchang/ngReact
@stayradiated/ngreact
/
examples
/
es6-tests-webpack
/
lib
/
activity-controller.js
13 lines
(10 loc)
•
297 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
default
class
ActivityCtrl
{
constructor
(
ActivityService, targetUser
) {
this
.
watchedRepos
= [];
ActivityService
.
findAllWatchedRepos
(targetUser) .
then
(
result
=>
{
this
.
watchedRepos
= result; }); } }
ActivityCtrl
.
$inject
= [
'ActivityService'
,
'targetUser'
];