Git Product home page Git Product logo

code.angularjs.org's Introduction

code.angularjs.org

This repo contains the content served at code.angularjs.org.

The folders for each version are auto-generated, so don't open pull requests against this code. Features and bug reports can be reported at the AngularJS Github Repository.

The site code.angularjs.org is not a CDN. The AngularJS builds there are to be used only during development. The site is not suitable for production usage.

If you are looking for a CDN link to AngularJS visit angularjs.org.

Project Maintainers Note

Here are the steps to do a manual upload of folders to Firebase Storage:

Be aware that some file paths contain colons :, which are not valid on Windows, so you must upload from a Unix-based OS.

  • Clone this repo:

    git clone https://github.com/angular/code.angularjs.org
    cd code.angularjs.org
  • Install package dependencies

    yarn
  • Generate a keyfile in the Firebase Storage web console (https://cloud.google.com/iam/docs/creating-managing-service-account-keys) and store it in the root of the project as code-angularjs-org.json

  • Run the grunt task to upload the chosen files. For example to upload all the partials for v1.0.5:

    node_modules/.bin/grunt --target=1.0.5 --filter=docs*/**
  • Remember to delete the keyfile from you local system when done, as this gives unlimited access to the Storage.

code.angularjs.org's People

Contributors

alexeagle avatar alxhub avatar brocco avatar caitp avatar igorminar avatar jeffbcross avatar jelbourn avatar josephperrott avatar kara avatar matsko avatar mhevery avatar mprobst avatar naomiblack avatar narretz avatar ngdashboard avatar petebacondarwin avatar rkirov avatar robwormald avatar tbosch avatar vikerman avatar vojtajina avatar vsavkin avatar yjbanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

code.angularjs.org's Issues

the doc could not work well without http server

I am a newbia for angularjs. I suffer some problem that the doc files in angluar-{version}.zip could not directly opened by my chrome browser and "node-webkit".
there are always 4 errors which are shown by console:
TypeError: Cannot call method 'indexOf' of undefined:
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
....
(the detail will in the issue end)

however,it works well in my ngnix http server.

why? it seems that angularjs is not suitable for native web application development ,and the basis features of angularjs counld not work whitout httpserver.

Do you think my Inference is true?

the detail about my problem:
the Error informations in the node-webkit which based on chrome 32 version:
TypeError: Cannot call method 'indexOf' of undefined
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124)
at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:43:447)
at Array.forEach (native)
at q (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:7:280) angular.js:9778
TypeError: Cannot call method 'indexOf' of undefined
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124)
at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke angular.js:9778
TypeError: Cannot call method 'indexOf' of undefined
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124)
at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke angular.js:9778
TypeError: Cannot call method 'indexOf' of undefined
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124)
at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at d (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:230)
at Object.instantiate (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:394)
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:66:112)
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:53:14) angular.js:9778

Two folders (leading to 404 pages) randomly appear at the root

Hello

I see two folders that seem to randomly appear at the root of https://code.angularjs.org/ named angular-1.2.15-build.2376+sha.66fdc03/ and angular-1.3.1-build.3436+sha.47e15aa/. Both links simply lead to a standard 404 Not Found page. They seem to randomly appear about 1/3 of the times.

I have tried from several internet connections and several machines/browsers, and there was no differences. So I don't think it's a proxy/cache issue on my side.

angular

factory issue with v1.2.25

Hi,
I just upgraded angularjs from v1.2.20 to v1.2.25 and is having problem with angular-resource.js. The problem I'm experiencing is in the delete resource factory method. The DELETE method used to take data parm in v1.2.20, but not in v1.2.25. In v1.2.25, when I try to send an API DELETE request to a backend url with data [{"name":"111"}, {"name": "test"}] it failed. How do I send DELETE request with data parameter using this version?

thanks,
Tracey

DOM XSS

Issue @

Javsscript code:
window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');

Security Issue: Can lead to DOM XSS.
Kindly fix it.

Regards
BSec

Links to source/improve reference "master" branch

Not sure if there is a good solution to this, but the links at the top of the docs for "View Source" and "Improve this Doc" take you to the same file on the master.

If you are using the stable version of Angular, this can lead to 404s or links that plop you in the middle of some other method.

FTP Access

Any chance the server can also host these files over FTP?

Uncaught ReferenceError: Node is not defined

Hi,
I all versions after 1.5.0 I am getting
Uncaught ReferenceError: Node is not defined
because the check for Node is not correct.
Please update in next version that line:
var jqLiteContains = Node.prototype.contains || function(arg) {
to
var jqLiteContains = Node && Node.prototype.contains || function(arg) {

ng-model-options=“{timezone: 'utc'}” resetting the ng-model value when a bootbox confirm modal is opened

I am using ng-model-options="{timezone: 'utc'}" to show my date in UTC format throughout.But on the same screen I have a button which opens a modal of bootbox and when that is opened the ng-model gets cleared.This is strange as there is no mention of the date in that function.Below is the code.Thanks in advance.

<input ng-model-options="{timezone: 'utc'}"
                                      type="text"  name="creationDate" class="form-control req" uib-datepicker-popup="{{format}}" is-open="popup2.open" datepicker-options="dateOptions1" placeholder="{{vm.user.creationDate | date:'dd/MM/yyyy' : 'UTC'}}"  ng-model="vm.user.creationDate" ng-init="vm.user.creationDate  = vm.user1.creationDate" ng-change="vm.maturity(vm.user.creationDate, 'creationDate')" close-text="Close" alt-input-formats="altInputFormats" readonly="readonly" required />

and the bootbox code:

bootbox.confirm("Are you sure want to delete Test?", function (result) {
      console.log(vm.user);
      if (result == false) {
      return;
      } else {
      let data = Object.assign({}, vm.user);
      data.exposureId = vm.user1._id;
      data.amount = (data.amount + "").split(',').join('');
      UserService.DeleteTest(data).then(response => {
          console.log(response);
          vm.message = response.message;
          vm.show = true;
          $scope.isChecked = false;
          $timeout(function () {
              $scope.isChecked = true;
          }, 4000);
      });
      }
  });


Can I save json data in angular(v 1.3.15) cookies and retrieve it

After calling an api i got following data

$scope.twotap_builtin_cart = {
"sites":{
"571fb46730bb1f373d00bdb4":{
"info":{"logo":"https://core.twotap.com/system/sites/logos/571f/b467/30bb/1f37/3d00/bdb4/small/571fb46730bb1f373d00bdb4.png?1468389436927",
"name":"Overstock",
"url":"overstock.com"
},
"currency_format":"$AMOUNT",
"coupon_support":false,
"gift_card_support":false,
"checkout_support":["noauthCheckout"],
"shipping_countries_support":["United States of America"],
"billing_countries_support":["United States of America"],
"shipping_options":{"cheapest":"Default shipping option"},
"returns":"

<span style="font-size:16px">Overstock Return Policy

\r\n\r\n

You can initiate a return for most new and unopened items within 30 days of delivery for a full refund.* You must return items in new or unused condition with all original materials included with the shipment. We must receive your returned items at our processing facility within 45 days of delivery (see Product-Specific Return Policies for exceptions). We inspect all returned items and award a partial refund for opened or used products. If the return is a result of our error or defective product, we will refund the full cost of the merchandise and shipping charges.

\r\n\r\n

If you initiate a return after 30 days, we may issue a partial refund* depending on elapsed time and condition of merchandise.

\r\n\r\n

Defective Product and Returns Due to Our Error

\r\n\r\n

You may return defective items, items damaged at the time of receipt, and incorrect items received without penalty.** Your return shipping charges will be waived.

\r\n\r\n

When we receive your return, we inspect the item and provide a replacement or issue a refund. If the product is not defective, return shipping fees will apply and/or a partial refund may be issued.

\r\n\r\n

Products Returned After 30 days

\r\n\r\n
    \r\n\t
  • Because products devalue over time, we offer partial refunds for items returned over 30 days after delivery
  • \r\n\t
  • We may reduce the refund based on the condition of the merchandise
  • \r\n\t
  • We may also deduct the original and return shipping charges from your refund
  • \r\n\t
  • If we send you a replacement item, we must receive the original item at our warehouse within 30 days your return initiation. Otherwise, we will charge you full price for the replacement item
  • \r\n
\r\n\r\n

For more about return policy rules and exceptions you can visit : https://help.overstock.com/app/answers/detail/a_id/1

\r\n",
"add_to_cart":{"a6eda98b2e60363a67efb985ef622cea":{"original_url":"http://www.jdoqocy.com/click-3726866-10654383?url=http%3A%2F%2Fwww.overstock.com%2F7281112%2Fproduct.html%3FTRACK%3Daffcjfeed%26CID%3D207442%26fp%3DF","clean_url":"http://www.overstock.com/7281112/product.html?CID=207442",
"weight":"1000",
"status":"done",
"required_fields":{
"quantity":{
"data":[{"input_type":"text","input_name":"INPUT"}]}},
"discounted_price":null,
"original_price":null,
"pickup_support":false,
"url":"http://www.overstock.com/7281112/product.html?TRACK=affcjfeed&CID=207442&fp=F","required_field_values":{},"required_field_names":["quantity"],"categories":["Sports & Toys","Toys & Hobbies","Games & Puzzles","Board Games"],"description":"

ITEM#: 14756475

From a different age when people had time to sit and play games together, the Britannia Games Compendium is packed full of fun. Based on a product from the 1940s the Britannia Games Compendium has something for all ages.\n

\n
    \n
  • Brand: Perisphere and Trylon
  • \n
  • The Britannia Compendium of Games
  • \n
  • Model: PTRG-1088
  • \n
  • Based on a product from the 1940s the Britannia Games Compendium has something for all ages
  • Beautifully made and highly collectable
  • \n
  • Number of players: 1 or more
  • \n
  • Includes: Chess, Draughts, Dominoes, Pick-up Sticks, Snap, Tiddlywinks, Playing Cards, Muggins, Poker Dice, Horse Racing Game, one (1) multiple fold-out game board, and instructions
  • \n
  • Recommended for ages 5 years and older
  • \n
","alt_images":["http://ak1.ostkcdn.com/images/products/7281112/Perisphere-and-Trylon-The-Britannia-Compendium-of-Games-f17b48f6-8c81-4a0e-af12-fa2e3d97ac25_320.jpg"],"image":"http://ak1.ostkcdn.com/images/products/7281112/Perisphere-and-Trylon-The-Britannia-Compendium-of-Games-f17b48f6-8c81-4a0e-af12-fa2e3d97ac25_600.jpg","price":"$37.49","title":"Perisphere and Trylon The Britannia Compendium of Games"}}}},"user_id":null,"unknown_urls":[],"cart_id":"5785d83c493bfb7f2a352cde","notes":null,"country":"us","stored_field_values":{},"message":"done","description":"AddToCart has been completed.","product_urls":[]}

Then I saved this data inside cookies.
$cookies['xxx'] = $scope.twotap_builtin_cart;

Now, when i tried to retrieve this data from cookies it showed me as Object. I tried to print it inside console it showed object Object

var t = $cookies['xxx'];
console.log(t);
$scope.recentItemsx = angular.toJson(t);
console.log($scope.recentItemsx);
console.log(JSON.parse($cookies['xxx']));
I tried JSON.parse , anglar.toJson and jsonstringify. Nothing can solve this

I tried with cookie store

$cookieStore.put('recentx',$scope.twotap_builtin_cart);
I also got following warning Cookie in console

'recentx' possibly not set or overflowed because it was too large (6675 > 4096 bytes)! in another controller i printed
console.log($cookieStore.get('recentx'));
It give me output [object Object]. I can not work with this. I need json data for ng-repeat purpose I can not putObject or Get Object because those are for angular version greater than 1.4

Clean checkout on Windows has untracked files

I suspect this is related to filesystem case sensitivity, but if you clone this repo on Windows, it has a ton of untracked files before you've done anything.

I suspect this won't bother you, but it means having a checked out version of this repo and updating it on Windows is impossible. All commands like git reset and git clean do weird things, always leaving the repo in a dirty state; impossible to make clean.

Here's the output of a clone/`status`` on a clean Windows VM:

PS C:\Users\Danny\danny> git clone https://github.com/angular/code.angularjs.org
Cloning into 'code.angularjs.org'...
remote: Reusing existing pack: 14557, done.
remote: Counting objects: 1038, done.
remote: Compressing objects: 100% (1036/1036), done.
remote: Total 15595 (delta 525), reused 0 (delta 0)
Receiving objects: 100% (15595/15595), 190.75 MiB | 9.94 MiB/s, done.
Resolving deltas: 100% (11404/11404), done.
Checking connectivity... done.
Checking out files: 100% (38903/38903), done.
PS C:\Users\Danny\danny> cd .\code.angularjs.org
PS C:\Users\Danny\danny\code.angularjs.org> git status
On branch master
Your branch is up-to-date with 'origin/master'.

Untracked files:
(use "git add <file>..." to include in what will be committed)
0.10.0/docs-0.10.0/api/angular.directive.ng
0.10.0/docs-0.10.0/api/angular.widget.@ng
0.10.0/docs-0.10.0/api/angular.widget.ng
0.10.1/docs-0.10.1/api/angular.directive.ng
0.10.1/docs-0.10.1/api/angular.widget.@ng
0.10.1/docs-0.10.1/api/angular.widget.ng
0.10.2/docs-0.10.2/partials/api/angular.directive.ng
0.10.2/docs-0.10.2/partials/api/angular.widget.@ng
0.10.2/docs-0.10.2/partials/api/angular.widget.ng
0.10.3/docs-0.10.3/partials/api/angular.directive.ng
0.10.3/docs-0.10.3/partials/api/angular.widget.@ng
0.10.3/docs-0.10.3/partials/api/angular.widget.ng
// (trim, hundreds of files...)
1.2.9/docs/ptore2e/api/ng.directive

nothing added to commit but untracked files present (use "git add" to track)
PS C:\Users\Danny\danny\code.angularjs.org> git status

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.