mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-11 16:23:09 +00:00
remove trailing whitespace
This commit is contained in:
parent
70c74a9c4e
commit
5d0d34ae72
1 changed files with 11 additions and 11 deletions
|
|
@ -841,20 +841,20 @@ function toKeyValue(obj) {
|
||||||
*
|
*
|
||||||
* ## The angular distribution
|
* ## The angular distribution
|
||||||
* Note that there are two versions of the angular javascript file that you can use:
|
* Note that there are two versions of the angular javascript file that you can use:
|
||||||
*
|
*
|
||||||
* * `angular.js` - the development version - this file is unobfuscated, uncompressed, and thus
|
* * `angular.js` - the development version - this file is unobfuscated, uncompressed, and thus
|
||||||
* human-readable and useful when developing your angular applications.
|
* human-readable and useful when developing your angular applications.
|
||||||
* * `angular.min.js` - the production version - this is a minified and obfuscated version of
|
* * `angular.min.js` - the production version - this is a minified and obfuscated version of
|
||||||
* `angular.js`. You want to use this version when you want to load a smaller but functionally
|
* `angular.js`. You want to use this version when you want to load a smaller but functionally
|
||||||
* equivalent version of the code in your application. We use the Closure compiler to create this
|
* equivalent version of the code in your application. We use the Closure compiler to create this
|
||||||
* file.
|
* file.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* ## Auto-bootstrap with `ng:autobind`
|
* ## Auto-bootstrap with `ng:autobind`
|
||||||
* The simplest way to get an <angular/> application up and running is by inserting a script tag in
|
* The simplest way to get an <angular/> application up and running is by inserting a script tag in
|
||||||
* your HTML file that bootstraps the `http://code.angularjs.org/angular-x.x.x.min.js` code and uses
|
* your HTML file that bootstraps the `http://code.angularjs.org/angular-x.x.x.min.js` code and uses
|
||||||
* the special `ng:autobind` attribute, like in this snippet of HTML:
|
* the special `ng:autobind` attribute, like in this snippet of HTML:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html xmlns:ng="http://angularjs.org">
|
<html xmlns:ng="http://angularjs.org">
|
||||||
|
|
@ -916,11 +916,11 @@ function toKeyValue(obj) {
|
||||||
* ## Manual Bootstrap
|
* ## Manual Bootstrap
|
||||||
* Using auto-bootstrap is a handy way to start using <angular/>, but advanced users who want more
|
* Using auto-bootstrap is a handy way to start using <angular/>, but advanced users who want more
|
||||||
* control over the initialization process might prefer to use manual bootstrap instead.
|
* control over the initialization process might prefer to use manual bootstrap instead.
|
||||||
*
|
*
|
||||||
* The best way to get started with manual bootstraping is to look at the magic behind `ng:autobind`
|
* The best way to get started with manual bootstraping is to look at the magic behind `ng:autobind`
|
||||||
* by writing out each step of the autobind process explicitly. Note that the following code is
|
* by writing out each step of the autobind process explicitly. Note that the following code is
|
||||||
* equivalent to the code in the previous section.
|
* equivalent to the code in the previous section.
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html xmlns:ng="http://angularjs.org">
|
<html xmlns:ng="http://angularjs.org">
|
||||||
|
|
@ -941,9 +941,9 @@ function toKeyValue(obj) {
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* This is the sequence that your code should follow if you're bootstrapping angular on your own:
|
* This is the sequence that your code should follow if you're bootstrapping angular on your own:
|
||||||
*
|
*
|
||||||
* * After the page is loaded, find the root of the HTML template, which is typically the root of
|
* * After the page is loaded, find the root of the HTML template, which is typically the root of
|
||||||
* the document.
|
* the document.
|
||||||
* * Run the HTML compiler, which converts the templates into an executable, bi-directionally bound
|
* * Run the HTML compiler, which converts the templates into an executable, bi-directionally bound
|
||||||
|
|
@ -953,7 +953,7 @@ function toKeyValue(obj) {
|
||||||
* ##XML Namespace
|
* ##XML Namespace
|
||||||
* *IMPORTANT:* When using <angular/> you must declare the ng namespace using the xmlns tag. If you
|
* *IMPORTANT:* When using <angular/> you must declare the ng namespace using the xmlns tag. If you
|
||||||
* don't declare the namespace, Internet Explorer does not render widgets properly.
|
* don't declare the namespace, Internet Explorer does not render widgets properly.
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* <html xmlns:ng="http://angularjs.org">
|
* <html xmlns:ng="http://angularjs.org">
|
||||||
* </pre>
|
* </pre>
|
||||||
|
|
@ -964,7 +964,7 @@ function toKeyValue(obj) {
|
||||||
* to form the fully qualified widget name. For example, you could map the alias `my` to your domain
|
* to form the fully qualified widget name. For example, you could map the alias `my` to your domain
|
||||||
* and create a widget called my:widget. To create your own namespace, simply add another xmlsn tag
|
* and create a widget called my:widget. To create your own namespace, simply add another xmlsn tag
|
||||||
* to your page, create an alias, and set it to your unique domain:
|
* to your page, create an alias, and set it to your unique domain:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* <html xmlns:ng="http://angularjs.org" xmlns:my="http://mydomain.com">
|
* <html xmlns:ng="http://angularjs.org" xmlns:my="http://mydomain.com">
|
||||||
* </pre>
|
* </pre>
|
||||||
|
|
@ -973,7 +973,7 @@ function toKeyValue(obj) {
|
||||||
* ## Global Object
|
* ## Global Object
|
||||||
* The <angular/> script creates a single global variable `angular` in the global namespace. All
|
* The <angular/> script creates a single global variable `angular` in the global namespace. All
|
||||||
* APIs are bound to fields of this global object.
|
* APIs are bound to fields of this global object.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function angularInit(config){
|
function angularInit(config){
|
||||||
if (config.autobind) {
|
if (config.autobind) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue