angular in memory web api login curd exmpal
@Injectable({
providedIn: 'root'
})
export class DataService implements InMemoryDbService{
constructor() { }
createDb(){
let policies = [
{ id: 1, num: 'PO1', amount: 1000, userId: 1, clientId: 1, description: 'Insurance policy number PO1' },
{ id: 2, num: 'PO2', amount: 2000, userId: 1, clientId: 2, description: 'Insurance policy number PO2' },
{ id: 3, num: 'PO3', amount: 3000, userId: 1, clientId: 3, description: 'Insurance policy number PO3' },
{ id: 4, num: 'PO4', amount: 4000, userId: 1, clientId: 4, description: 'Insurance policy number PO4' }
];
return {policies};
}
}
Also in JavaScript:
- what is ... in javascript
- refresh a div jquery
- sars
- angular scroll to element horizontally
- router-outlet' is not a known element angular
- chamar arquivo javascript no html
- js date minus 18 years
- react time picker
- equal to or more than javascript
- PayloadTooLargeError: request entity too large
- get the whole value of a number javascript
- what are the two ways to create an array in javascript examples?
- convertir seconde
- angular component lifecycle hooks
- how to get specific data from json using python
- how to make a circle in js
- javascript loop last index
- how to update react app
- synchronized function javascript
- how to make a deck of cards in javascript
- js select option value when selected
- javascript change attribute
- binary to ascii javascript
- firebase cloud functions send email