Giter VIP home page Giter VIP logo

angularjs.org's Introduction

AngularJS.org Home Page

The angularjs.org site is not designed to be used by third parties. It is only kept here as part of our own deployment processes.

If you want to have a go at hosting it yourself you can try running

yarn run build

This will build the website in the build folder, which you can then serve with something like:

yarn start

and browse to http://localhost:8080

Note: we do not provide support for doing this.

The site relies upon accessing numerous additional resources from all over the web.

Hint: to access the AngularJS docs application rather than this site, which is only the homepage, clone the main project and build the docs yourself. See https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md

angularjs.org's People

Contributors

aarongray avatar anantn avatar bradlygreen avatar btford avatar davideast avatar dependabot[bot] avatar gkalpak avatar heitzke avatar igorminar avatar jeffbcross avatar matsko avatar mgol avatar mhevery avatar naomiblack avatar narretz avatar ngdashboard avatar nicksavov avatar petebacondarwin avatar pkozlowski-opensource avatar raphamorim avatar sercaneraslan avatar shyamseshadri avatar sirkitree avatar sodoku avatar splaktar avatar stephenfluin avatar stevedesmond-ca avatar tbosch avatar vojtajina avatar websiddu 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angularjs.org's Issues

angularjs.org hangs IE9

Viewing angularjs.org in IE9 (Win7) causes IE to "hang". It appears to be in an infinite redirect loop. The URL keeps changing from http://angularjs.org to http://angularjs.org/#!/ and back again.

The browser content is unresponsive but you can close the window if you do it reasonably quickly. The entire browser will eventually hang if you do not.

Using Microsoft-supplied VM, build 20131127, IE9 on Win7

Disclaimer: I'm an angular newb evaluating using angular for a new project, so I'm not savvy enough yet to debug yet...sorry!

Localization example on main page

Beer is bad word for this example, because it is uncountable noun in same languages. F.e. in russian I can say "1 beer" or "2, 3, 4 beers", but "5, 6, ... beers" — incorrect. Generally say: "5 bottles of beer". Change it on boy or book...

Angular documentation not working on Chrome

docs.angularjs.org is not working

The code deployed on the documentation website have some different way to add scripts dynamically to the page.

There are two problems with the approach:

  1. The release versions of AngularJS to be used for the Google CDN are not set during the build.
  2. The site is completely unusable without AngularJS loaded.

link to ngmodules.org

Currently angularjs.org doesn't link to ngmodules.org. A link under the "Develop" menu could be a great spot to advertise this helpful index.

issue with unit-testing directive using karma

I'm unit testing my directive and in my unit test I only have

var scope = $rootScope.$new(),
    element = angular.element('<my-foo></my-foo>');

element = $compile(element)(scope);
scope.$digest();

expect(element.scope()).toBeDefined();

This test fails :( To reproduce this I have created a small angular project here on github, with only 1 directive and only one unit test. To reproduce do

$> git clone https://github.com/ajs2/angularjs-directive
$> npm install
$> bower install
$> karma start karma.conf.js

I was able to fix this test by doing one the following

  1. In the directive add to the 'link' function
$element.data('$scope', $scope);
  1. or change 'replace' into
replace: false 
  1. remove jquery from karma.conf.js

It doesn't make any sense, but it demonstrates that this situation is weird (I think). Can someone comment on this, because after many hours of tweaking I start to think that I have hit a bug here!

Improve the downloads page

ideally we want the download button to take the visitor to a model dialog / light box that will help him navigate between stable/unstable versions and guide in downloading the right file (zip, angular.js, angular.min.js)

Internal Url inconsistency with ng-href and location.path

I find myself having to write urls in two different manners

ng-href="#something" and location.path("something")

Since I have a urlService in my app to generate urls for various things, this means I have to scatter .substring(1) thruout my code to deal with location.path() like this location.path(urlService.createFoo(args).substring(1)) so that I can use

It would be nice if they both took the same string and since ng-href has to have the # so that you could actually leave the page with a /something, it makes sense to have location.path ignore the first character if it is a '#' character

googleapis and angular-route

Since angular-route has been split off into a seperate file, a download link through the googleapis' CDN should also be provided.

angularjs.org main page- bootstrap error blocks all other code

using FF v19 routinely get following error that blocks all nav , syntax highlighter, videos etc from working:

 TypeError: a.browser is undefined
 http://angularjs.org/js/bootstrap.min.js
 Line 6

First noticed about a month ago when started using framework. Am heavy user of docs.angular.org and don't have same issue there

ngPattern \d is a problem when used in a directive

the regex pattern \d means any digit, it is equivalent to [0-9]. When used on an angular page in an input field it works fine. However if the pattern is used in an input field that is part of a directive template it does no work. In fact it sets the model value to null and clears the field of the input. If however the pattern in the directive template input field is changed to [0-9] it works as expected!

Here is a jsFiddle: http://jsfiddle.net/rmzpfef/JcLmb/31/

Any thoughts, mistakes on my part?

By the way, I love angular. Great piece of work!

oldCollection always .equals(); never === to newCollection in $watchCollection

Docs for $watchCollection 's listener say:

listener a callback function that is

  • fired with both the newCollection and oldCollection as parameters.
  • The newCollection object is the newly modified data obtained from the obj expression
  • and the oldCollection object is a copy of the former collection data.

In my demo (http://plnkr.co/edit/WXGn5LaoiJmLzJ8rMImQ?p=preview - open JS console) I see:

  1. (bug) oldCollection always .equals() newCollection - even when array is mutated or replaced altogether
  2. (perhaps design flaw) oldCollection !== newCollection on first invocation - unlike in $watch. IMO behavior should be consistent between the two methods and on first invocation oldCollection must be === newCollection - to be able to easily tell that it is - in fact - first invocation

Route bug

Windows 7 ultimate x64, Chrome

If I go to http://docs.angularjs.org/api/#! or similar url I get

TypeError: Object [object Array] has no method 'apply'
    at Object.name.(anonymous function) [as $get] (<anonymous>:687:32)
    at Object.d [as invoke] (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js:30:346)
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js:32:104
    at c (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js:30:134)
    at d (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js:30:311)
    at Object.instantiate (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js:30:475)
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js:61:228
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js:48:320
    at q (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js:7:380)
    at W (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js:48:186) 

If I go http://docs.angularjs.org/ — OK
If I use Mac — OK

http://code.angularjs.org/1.0.1/angular-1.0.1.tgz is double gzipped

angular-1.0.1.tgz is gzipped twice:

$ tar zvxf angular-1.0.1.tgz 
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

$ file angular-1.0.1.tgz 
angular-1.0.1.tgz: gzip compressed data, from Unix

$ gunzip angular-1.0.1.tgz 
$ file angular-1.0.1.tar 
angular-1.0.1.tar: gzip compressed data, from Unix, last modified: Mon Jun 25 08:19:55 2012

$ zcat angular-1.0.1.tar > a.tar
$ tar xvf a.tar
./
./angular-1.0.1/
./angular-1.0.1/angular-1.0.1.js
./angular-1.0.1/angular-1.0.1.min.js
...

Not insurmountable but it shouldn't be this way.

Inconsistent Navigation Menu Links

The dropdown navigation menu links are pretty inconsistent going from page to page. For example
On the home page, clicking Learn -> Home is the same as angularjs.org (not docs.angularjs.org)
Clicking Learn -> Tutorial is the same as Develop -> Tutorial - http://docs.angularjs.org/tutorial (or was that on purpose?)

This is a more generalized problem of issue #65

Fix behavior of the sidebar "search the docs" filter

When you type into the "search the docs" filter box on http://docs.angularjs.org/guide, it does two things that are counterintuitive (and would be great to fix)

  1. Type "Boot" into the filter bar. The list gets shorter, but it shows a bunch of things that don't start with or contain the string "Boot". Instead, it's a list of all the pages that contain the string "Boot" somewhere on them. It's not obvious to the user that this is what's happening and it just looks like the filter isn't working. (Also, the search at the top right corner of the site does a full text search. So this behavior is confusing and redundant.)

Ideally, when you type a string into the filter box, it should filter the list so that only results that contain the string in the visible title remain.

  1. Type "Boot" into the filter bar. A box below my typing helpfully offer "Bootstrap" as a suggestion. I can't tab or arrow to select it (tab moves focus to the filtered list, arrow does nothing). If I mouse click on the suggestion, the box disappears and nothing happens.

Ideally, there should be a way to select what's in the suggestion box, and the result would be to load the selected page.

mistake in label on the index page

On the Add some control section, under the todo.js tab, addTodo() is mistakenly annotated with the following text:

We are assigning the behavior into the <code>$scope</code> so that the <code>ng-click</code> can invoke it.

it should be:

We are assigning the behavior into the <code>$scope</code> so that the <code>ng-submit</code> can invoke it.

[enhancement] Add missing bower.json.

Hey, maintainer(s) of angular/angularjs.org!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library angular/angularjs.org is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "angular/angularjs.org",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Mixing logic and view in code and tests

I didn't see all code, but in many places I see that contents of tags are used with application logic. F.e. in dom.js we used <h1>title</h1> as id-attribut. Many of our tests use tags contents.
expect(element(':button:contains(Save)').attr('disabled')).toBeTruthy();
'Save' is <button>Save</button> etc.

I bad tester, but I think if my test return error after I changed the design, it is bad test (even if the sample of test).

When you'll start translate our site it will bring problems.

Test case can't be launched, error message as: Can't set headers after they are sent

I followed the instructions to clone the latest master branch into my local directory, installed all dependencies and finished the build procedure, however I was not able to run the test cases. Below error is emitted after executing rake test:

http.js:650
throw new Error('Can\'t set headers after they are sent.');
      ^
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:650:11)
    at /usr/local/lib/node_modules/testacular/lib/web-server.js:61:14
    at fs.js:185:14
    at /usr/local/lib/node_modules/testacular/node_modules/glob/node_modules/graceful-fs/graceful-fs.js:90:5
    at Object.oncomplete (fs.js:308:15)
    at process._makeCallback (node.js:248:20)
rake aborted!
Command failed with status (1): [testacular start testacular-jqlite.conf.js...]

(proposal) A way to jump to the last error

In order to get to the core error in this case I had to click and wait 6 times until I finally saw what the real error was.

screen shot 2014-01-27 at 11 35 13 am

If I'm working and having to do this constantly, it becomes a huge waste of time clicking and waiting repeatedly. This would be solved easily "Go To Last Error" button.

To recreate this just add a lot of modules similar to angular-app/angular-app and cause an error in the deepest module. I could make this go up to 18 clicks if my browser supported a large enough GET request.

Causes a 414 Request-URI Too Large: https://gist.github.com/clouddueling/8658173

angularjs.org causes Safari to crash

When I try to open angularjs.org in Safari on OS X 10.8.4, Safari crashes with following message. Can anyone reproduce? Any ideas about the cause?

Process:         WebProcess [1302]
Path:            /System/Library/PrivateFrameworks/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess
Identifier:      com.apple.WebProcess
Version:         8536 (8536.30.1)
Build Info:      WebKit2-7536030001000000~9
Code Type:       X86-64 (Native)
Parent Process:  ??? [1299]
User ID:         503

Date/Time:       2013-09-10 12:53:59.462 +0200
OS Version:      Mac OS X 10.8.4 (12E55)
Report Version:  10

Interval Since Last Report:          59471 sec
Crashes Since Last Report:           2
Per-App Interval Since Last Report:  520646 sec
Per-App Crashes Since Last Report:   2
Anonymous UUID:                      F412355A-1B41-5EFB-EB89-B573B93472F2

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
*** CFEqual() called with NULL first argument ***
Bundle controller class:
BrowserBundleController

Add bower install to homepage (under Download lightbox)

I was wondering if I could convince you to add a little Bower install note to the "Download" lightbox currently on the AngularJS homepage.

e.g

Bower: bower install angular

You currently have a CDN field and it would fit perfectly right above or below :)

With you already managing copies of Angular and other deps on Bower atm, I think it would really help ramp up usage of it if we could make support more visible.

Is that something we could do?

Update: Looks like we're going to continue this convo offline

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.