PageSourceSearch

https://angularjs.org/js/download-data.js

js angularjs.org collected 2026-10-01 07:32:32 UTC 3,257 bytes, 57 lines download raw bytes

1angular.module('download-data', [])
2
3.value('BRANCHES', [
4    {
5      branch: '1.8.*', version: '1.8.2',
6      title: '1.8.x (latest)',
7      cssClass: 'branch-1-8-x',
8      showOnButton: true
9    },
10    {
11      branch: '1.2.*', version: '1.2.32',
12      title: '1.2.x (legacy)',
13      cssClass: 'branch-1-2-x',
14      showOnButton: true
15    },
16])
17
18.value('BUILDS', [
19    { name: 'Minified' },
20    { name: 'Uncompressed' },
21    { name: 'Zip' }
22])
23
24.value('DOWNLOAD_INFO', {
25  branchesInfo:
26    "<dl class='dl-horizontal'>"+
27    "  <dt>LTS Stable 1.8.x</dt>"+
28    "  <dd>This is the latest stable branch (<a href='https://github.com/angular/angular.js/tree/v1.8.x' target='_blank'>v1.8.x on Github</a>), with security related bug fixes only.</dd>"+
29    "  <dt>LTS Legacy 1.2.x</dt>"+
30    "  <dd>This branch contains a legacy version of AngularJS that supports IE8 (<a href='https://github.com/angular/angular.js/tree/v1.2.x' target='_blank'>v1.2.x on Github</a>)." +
31    "      It is not actively developed and will only receive security fixes. It is not recommended for new applications</dd>"+
32    "</dl>",
33
34  buildsInfo:
35    "<dl class='dl-horizontal'>"+
36    "  <dt>Minified</dt>"+
37    "  <dd>Minified and obfuscated version of the AngularJS base code. Use this in your deployed application (but only if you can't use Google's CDN)</dd>"+
38    "  <dt>Uncompressed</dt>"+
39    "  <dd>The main AngularJS source code, as is. Useful for debugging and development purpose, but should ideally not be used in your deployed application</dd>"+
40    "  <dt>Zipped</dt>"+
41    "  <dd>The zipped version of the AngularJS Build, which contains both the builds of AngularJS, as well as documentation and other extras</dd>"+
42    "</dl>",
43
44  cdnInfo:
45    "While downloading and using the AngularJS source code is great for development, "+
46    "we recommend that you source the script from Google's CDN (Content Delivery Network) in your deployed, customer facing app whenever possible. "+
47    "You get the following advantages for doing so:"+
48    "<ul>"+
49    "  <li><strong>Better Caching :</strong> If you host AngularJS yourself, your users will have to download the source code atleast once. But if the browser sees that you are referring to Google CDN's version of AngularJS, and your user has visited another app which uses AngularJS, then he can avail the benefits of caching, and thus reduce one download, speeding up his overall experience!</li>"+
50    "  <li><strong>Decreased Latency :</strong> Google's CDN distributes your static content across the globe, in various diverse, physical locations. It increases the odds that the user gets a version of AngularJS served from a location near him, thus reducing overall latency.</li>"+
51    "  <li><strong>Increased Parallelism : </strong>Using Google's CDN reduces one request to your domain. Depending on the browser, the number of parallel requests it can make to a domain is restricted (as low as 2 in IE 7). So it can make a gigantic difference in loading times for users of those browsers.</li>"+
52    "</ul>",
53
54  bowerInfo:
55    "Bower is a package manager for client-side JavaScript components.<br><br>"+
56    "For more info please see: <a href='https://github.com/bower/bower'>https://github.com/bower/bower</a>"
57});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.