This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inside a controller | |
$scope.searchResults = SearchService.findItems(...); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-repeat="item in searchResults"> | |
<h3>{{item.title}}</h3> | |
<p>{{item.description}}</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-repeat="item in searchResults track by item.id"> | |
<h3>{{item.title}}</h3> | |
<p>{{item.description}}</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul ng-repeat="role in ::userRoles"> | |
<li>{{::role.id}} {{::role.name}}</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input | |
ng-model="searchPhrase" | |
ng-model-options="{debounce: 500}" | |
ng-change="getResults(searchPhrase)"></input> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul ng-repeat="user in userList"> | |
<li>{{user.signatureLine | stripWhitespace | censor | limitTo:100}}</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul ng-repeat="user in userList"> | |
<li>{{user.filteredSignature}}</li> | |
<ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shortenedText = $filter('limitTo')(originalText, 100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"profile": "story", "subject": [{"code": "patopic:Adventure", "name": "Adventure"}, {"code": "paasset:image", "name": "Image"}], "language": "en", "_id": "urn:newsml:localhost:2016-04-14T09:23:02.589157:d9d9a153-84e8-412d-8cd7-1584247ef12c", "service": [{"code": "paservice:news", "name": "News"}], "slugline": "US hiking trails 2", "priority": 6, "headline": "Top 10 long-distance hiking trails in the US", "body_html": "<!-- EMBED START Image {id: \"embedded2052921701\"} -->\n<figure><img src=\"https://superdesk-test-eu-west-1.s3-eu-west-1.amazonaws.com/20160414/3b1830bdb1948c0418917ec2668006d185fc3021ce328447c1edd129d489710c.jpg\" alt=\"Pacific Crest Trail alttext\" srcset=\"https://superdesk-test-eu-west-1.s3-eu-west-1.amazonaws.com/20160414/702069eb4ed7aee53fdf02f9a80962a24cd0249695789004e0ccf76cf82b5c09.jpg 360w, https://superdesk-test-eu-west-1.s3-eu-west-1.amazonaws.com/20160414/10aa8be4f4de3379c1b63aaef90d85dc135af6fd533aed99b2513a45986d3645.jpg 720w, https://superdesk-test-eu- | |
west-1.s3-eu-west-1.amaz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"profile": "story", "subject": [{"code": "paasset:image", "name": "Image"}], "language": "en", "_id": "urn:newsml:localhost:2016-04-14T09:31:42.906766:5e5015b1-2324-45c4-96ca-28176fc38e99", "service": [{"code": "paservice:news", "name": "News"}], "slugline": "A Keyword", "priority": 6, "headline": "Publish Test", "body_html": "<p>Some text.</p>\n<!-- EMBED START Image {id: \"embedded8460337531\"} -->\n<figure><img src=\"https://superdesk-test-eu-west-1.s3-eu-west-1.amazonaws.com/20160414/69e0c05a0a7a72fc936415550ecd5290bcb6ad3923ffaf896ece93dff3a0e37b.jpg\" alt=\"2015 Porsche 911 GT3 RS\" srcset=\"https://superdesk-test-eu-west-1.s3-eu-west-1.amazonaws.com/20160414/cbfe277c3fe44ca0947db0b4d96900b3f970a73327055f2e050e3c6851572b7c.jpg 360w, https://superdesk-test-eu-west-1.s3-eu-west-1.amazonaws.com/20160414/a9d183ae394c6e8889b5736f15e673fd96fddc11c5e3a1372cd02b62fef72159.jpg 720w, https://superdesk-test-eu-west-1.s3-eu-west-1.amazonaws.com/20160414/ccbb6367faeb786cb7990962bc558365bcd | |
7b3628b9c146954ce8b8ab2a |
OlderNewer