Questions tagged [angular-loopback]

60 questions
7
votes
1 answer

Is it possible to generate services for Angular2 from Loopback?

Here is documentation about AngularJS JavaScript SDK This example works perfect for Angular. It is possible to generate Angular client library with command $ lb-ng ../server/server.js js/lb-services.js Does exist same easy way to use Angular2 with…
Nick
  • 9,735
  • 7
  • 59
  • 89
6
votes
1 answer

Loopbackjs: Switch DB in datasource based on request origin

I need to switch the database in loopback datasource based on the request origin eg. If i make a request from xyz.domain.com I need to select xyz database for the datasource (we are using wildcard subdomain on frontend so there will be multiple…
6
votes
1 answer

LoopBack Remote Method to return array of records

I used loopback to generate my api and AngularJS to communicate with it. I have a model called Sync that contains the following records: Sync": { "34":…
Georgi Koemdzhiev
  • 11,421
  • 18
  • 62
  • 126
4
votes
2 answers

Loopback timeout(no response from server) when make a time consume request

I have a request which processes thousands of data. So sometimes It takes more then 5 minutes to complete. But unfortunately loopback returns timeout(no response from server) before process is completed. In nodejs request. You can remove request…
Ankur Akvaliya
  • 2,989
  • 4
  • 28
  • 53
3
votes
1 answer

Loopback 4 authentication using a db

I am trying to implement authorization to my loopback4 project using this tutorial https://github.com/strongloop/loopback-next/blob/master/packages/authentication/README.md Now on the provider part on the file called auth-strategy.provider, on the…
3
votes
4 answers

Loopback + Cannot initialize connector "loopback-component-storage"

I'm using loopback storage component "loopback-component-storage" to upload files. But problem is after adding this storage component and a Model for it named as Container, I'm not able to migrate models in my application to database. Following is…
Fakhar Zaman
  • 71
  • 2
  • 5
3
votes
2 answers

How to automatically add the current user to a model on save?

I'm using the built in user model of loopback for my application. What I want to accomplish is, that the author of a specific model entry (an article for example) is automatically saved to the model identified by the access token when it's saved. I…
hugo der hungrige
  • 12,382
  • 9
  • 57
  • 84
3
votes
0 answers

Are remote hooks executed sequentially?

Say I have multiple hooks defined for the same remote method on the same remote model: MyModel.afterRemote('create', function (context, instance, next) { // Do A }) MyModel.afterRemote('create', function (context, instance, next) { // Do…
csvan
  • 8,782
  • 12
  • 48
  • 91
2
votes
1 answer

How to convert data from an array to a nested array data in angular13

i'm new to angular. I need to convert the data as nested array in angular13. A stackblitz example is appreciated Data I got from the random API "data": [ { "Id": "17", "Year": "2020", …
2
votes
0 answers

How do I implement ngInit in Angular 8?

I am trying to implement [ngInit] in angular 8 code as said in this link ConvertingAngular1To2ngInit and it almost worked for me but the problem is it execute more than one time and in some case it go in infinite loop or almost infinite and it crash…
2
votes
1 answer

Setup Server Side Rendering Angular 4+ Application with Loopback/Strongloop

I have a Loopback-Server as backend for my angular application and it works great. To improve my SEO on my application I want to render the application on the server (ssr). I have my angular application inside the client folder of the loopback…
2
votes
3 answers

How to configure loopback to serve angular4 App?

I have generated a LoopBack project and Angular4 project using angular-cli. My LoopBack project serves html files at port 3000 and my Angular4 project is being served at 4200. Now I need to know if I can serve this angular app on 3000 just like…
Bhushan Gadekar
  • 13,485
  • 21
  • 82
  • 131
1
vote
0 answers

loopback update/insert into Oracle package procedure

How to update using loopback models or loopbackAPI with remote methods or persisted methods so that my JSON can be sent across to a package's procedure of Oracle from my loopback model. We use Angular 6 with loopback for API.We have successfully…
1
vote
1 answer

Can lb-ng (loopback-sdk-angular-cli) generated angular SDK can be used in IONIC 3 project having Angular 6.x

I have LoopBack3 Server project I want to use the SDK generated by lb-ng (loopback-sdk-angular-cli) in IONIC 3 project having Angular 6.x. Is it possible?
Haresh Gujarathi
  • 269
  • 1
  • 4
  • 10
1
vote
3 answers

Customize loopback model

How do i customize a PersistedModel in loopback ? Let's say i have two models Post and Comment. A Post hasMany Comment but it can have at most 3 comments. How can i implement that without using hooks? Also i need to do it inside a transaction. I'm…
justatester
  • 391
  • 3
  • 11
1
2 3 4