Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var phonecatApp = angular.module('phonecatApp', []);
- phonecatApp.controller('PhoneListCtrl', function ($scope) {
- $scope.phones = [
- {'name': 'Nexus S',
- 'snippet': 'Fast just got faster with Nexus S.'},
- {'name': 'Motorola XOOM™ with Wi-Fi',
- 'snippet': 'The Next, Next Generation tablet.'},
- {'name': 'MOTOROLA XOOM™',
- 'snippet': 'The Next, Next Generation tablet.'},
- ];
- var hi = new GlideRecord('123')
- hi.get('4c76677e111c210013e9578fb556a947');
- $scope.phones.push({'name': hi.name,
- 'snippet': 'The Next, Next Generation tablet.'});
- var hi2 = new GlideRecord('123')
- hi2.encodedQuery = 'sys_updated_by=abcd';
- hi2.query(recResponse);
- function recResponse(hi2) {
- while (hi2.next()) {
- $scope.phones.push({'name': hi2.name,
- 'snippet': 'The Next, Next Generation tablet.'});
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement