Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 11 2020 18:30
    nick-allen removed as member
  • Jul 18 2020 00:41
    nick-allen added as member
  • Sep 13 2019 15:39
    juristr removed as member
  • Jul 06 2018 14:18
    amcdnl removed as member
  • Mar 30 2018 12:42
    bullwinkle commented #72
  • Sep 18 2017 16:52
    amcdnl added as member
  • Sep 17 2017 15:00
    amcdnl removed as member
  • Sep 17 2017 14:45
    amcdnl added as member
  • Jun 21 2017 21:46
    amcdnl commented #78
  • Jun 21 2017 20:58
    mateusleon commented #78
  • Jun 21 2017 20:58
    mateusleon commented #78
  • Jun 21 2017 20:11
    amcdnl commented #78
  • Jun 21 2017 20:11
    amcdnl closed #78
  • Jun 21 2017 19:09
    mateusleon edited #78
  • Jun 21 2017 19:08
    mateusleon opened #78
  • Feb 15 2017 15:19
    kevinverelst reopened #76
  • Feb 15 2017 15:19
    kevinverelst closed #76
  • Feb 15 2017 15:19
    kevinverelst commented #76
  • Feb 15 2017 13:19
    amcdnl commented #76
  • Feb 15 2017 09:40
    albohlabs commented #76
Juri Strumpflohner
@juristr

Seems like the GitHub token for semantic-release is broken: https://travis-ci.org/Swimlane/angular-model-factory#L374

@amcdnl Any idea whether something changed in the configuration? Worked seamlessly for the last release

Jeff
@Jefftopia

Is this the correct syntax for a PUT?

    actions: {
        update: {
            method: 'PUT',
            url: '/{id}',
            data: 'data'
        }
    }

Then call with:

myTask.update({ data: dataVariable, id: idVariable })

Jeff
@Jefftopia

@juristr I'm having an issue with my post - see above for syntax. The problem is that the data I'm passing in via { data: 'data' } is being wrapped.

In other words, I want to pass the value of 'data', but the thing being PUT is data: { myData }

Is this clear?
the thing being PUT is data : { myData }, when it should be only myData
Jeff
@Jefftopia
figured it out, just pass the data to update(data)
Juri Strumpflohner
@juristr
great.
Anyways, normally I don't call update(...) directly but rather save. The data should already be in the model instance
like you have an instance of an angular-model-factory model, like Person:
var aPerson = new Person({ id: 1233, name: 'Juri'});
aPerson.save();
sorry, should be
aPerson.$save()
Jeff
@Jefftopia
That's one way of doing it, but I prefer to keep all of my REST operations in one place, the class, ergo, static methods.
Ryan Hutchison
@rhutchison
@Jefftopia but then you need to figure out the operation, whereas $save() takes care of that for you.
also, update is already defined, so not sure what you are getting by overwriting it with the example above.
Jeff
@Jefftopia
@rhutchison I'm not overriding in practice, I just wanted to see how to configure it differently if I needed to.
vchirkov
@vchirkov
@juristr sorry for not responding too long, I asked to update git tag.
Bower only loads 1.0.3
vchirkov
@vchirkov
looks like there are some issues with travis. version was not updated after merges
Austin
@amcdnl
hio guys!
sorry i’ve been MIA, lots of other stuff going on at my company
I’ve been working on a lot of ES stage-0 and TypeScript stuff, gonna be bringing that to MF
i can’t decide whether to make this totally agnostic, make a a1, or just straight up target a2
Juri Strumpflohner
@juristr

@amcdnl Seems like the automatic release process stopped at some point: https://travis-ci.org/Swimlane/angular-model-factory#L374

That's why @vchirkov doesn't get the latest version.

Seems like semantic-release is missing the Github tokens...probably we have to do the semantic-release setup again.

I'd do it, but I cannot as I don't have enough rights on the repo and then I'd also need the access rights to the swimlane npm repo
Austin
@amcdnl
up’d ur perms
sorry had to rearrange those this wk
Jeff
@Jefftopia

Why isn't there an analogous $save function on the MF class as a static method?

Only having it on model instance forces the consumer of your library into a certain pattern, which is inconsistent with the fact that you allow other rest functions to take place as a static method.

Austin
@amcdnl
@Jefftopia - its the global save
its what $save on the instance calls passing itself
projectmanagementsystem15
@projectmanagementsystem15

@projectmanagementsystem15
we expect responsive design like : https://datatables.net/

when we reduce browser size base on horizontal to hide a filed same time show plus icon
@amcdnl
totally doable … u need to do your own calculation tho

we expect responsive design like : https://datatables.net/
when we reduce browser size base on horizontal to hide a filed same time show plus icon
projectmanagementsystem15
@projectmanagementsystem15
Austin
@amcdnl
@here FYI - the repo has moved from Swimlane/angular-model-factory to swimlane-contrib/angular-model-factory
Juri Strumpflohner
@juristr
:+1:
Ryan Hutchison
@rhutchison
:\
why the change?
Austin
@amcdnl
@rhutchison some re-org of our corp github
sumitsolanki96
@sumitsolanki96
Hii all, how can i make server side pagination using angular 4 with php ??