Questions tagged [angular-loopback]
60 questions
1
vote
0 answers
Loopback: Remote Method is converting "null" to null value
I am having an issue where whenever my front end (angular) makes a remote method call that has a string "null" in it once it gets to the remote method in Loopback, Loopback has converted the string "null" to a null value.
For example if a remote…

emarel
- 371
- 7
- 30
1
vote
2 answers
Loopback : Rename file from before remote method using context
I want to rename file from before remote hook using context.
container.beforeRemote('upload', function (context, res, next) {
/////rename file
}
Can anyone tell me how can i access files from this?

Ankur Akvaliya
- 2,989
- 4
- 28
- 53
1
vote
0 answers
How do I store cart session using loopback?
This is my first project , I am building a RESTful API using Loopback Nodejs framework. Users can add and remove items from their carts but need to be authenticated to pay. How do I deal with that ?
Should I :
post and save the current cart in the…

Bruce_Wayne
- 19
- 1
- 5
1
vote
1 answer
How to call stored procedure in Mssql using loopback 4?
How to call stored procedure in Mssql using loopback 4 typescript
How do i make query in datasource like calling stored procedure
import { DataSourceConstructor} from '@loopback/repository';
export const db = new DataSourceConstructor({
…

ER.SHASHI TIWARI
- 917
- 1
- 10
- 25
1
vote
1 answer
How can I switch a model's datasource in loopback more than once? attachTo is not working
I have a model that I need to switch dataSources whenever I want. For that, I created a remote method on that model and used the attachTo() method.
// myModel.js
switchDataSource = function(req, fn){
const app = MyModel.app;
…

Leonardo Grade
- 83
- 1
- 1
- 8
1
vote
1 answer
How to break out of an ng-repeat loop?
Following case need to break out from ng-repeat loop
{{item}}