aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/cookbook
AgeCommit message (Collapse)Author
2014-01-28docs(cookbook): remove the cookbook docsJulie
The cookbook docs are now superceded by the guide. They are no longer available in any menus and the only way to find them is to search for them. Remove! Closes #5967
2013-11-06docs(guide/overview): Refactor overview and mvc docsTobias Bosch
Before, there we multiple overview docs: - guide/overview - guide/introduction - guide/dev_guide.mvc - guide/dev_guide.mvc.understanding_model - guide/dev_guide.mvc.understanding_view - guide/concepts Now we have: - guide/introduction: High level description of Angular with the key benefits but without code or any concrete concepts - guide/concepts: explains all important concepts with a simple example and contains deep links to the other parts of the guide. All the old information was moved into existing documents or deleted when they were duplicates.
2013-10-18docs: correct broken linksVojta Jina
This also contains some whitespace corrections by my editor.
2013-10-14docs(cookbook/deeplinking): fix typoDavid Gonzalez
2013-10-08docs(cookbook/adv_forms): simplify exampleJ Bruni
Pass the `$index` directly to the `removeContact` function, instead of searching for it in an expensive forEach loop. Closes #4320
2013-06-20docs(cookbook/helloworld): display "World" if no name is enteredNimaVaziri
2013-06-06refactor($route): pull $route and friends into angular-route.jsIgor Minar
$route, $routeParams and ngView have been pulled from core angular.js to angular-route.js/ngRoute module. This is was done to in order keep the core focused on most commonly used functionality and allow community routers to be freely used instead of $route service. There is no need to panic, angular-route will keep on being supported by the angular team. Note: I'm intentionally not fixing tutorial links. Tutorial will need bigger changes and those should be done when we update tutorial to 1.2. BREAKING CHANGE: applications that use $route will now need to load angular-route.js file and define dependency on ngRoute module. Before: ``` ... <script src="angular.js"></script> ... var myApp = angular.module('myApp', ['someOtherModule']); ... ``` After: ``` ... <script src="angular.js"></script> <script src="angular-route.js"></script> ... var myApp = angular.module('myApp', ['ngRoute', 'someOtherModule']); ... ``` Closes #2804
2013-04-11fix(ngRepeat): prevent initial duplicatesMisko Hevery
2013-01-18docs(cookbook): change prototype methods to scope methods in BuzzAmir H. Hajizamani
As explained in 'Understanding the Controller Component', Controllers written for new (post 1.0 RC) versions of Angular need to add methods to the scope directly, not the function's prototype. Correcting this example should remove any ambiguity, especially for beginners.
2013-01-17docs(guide): minor grammar fixesMatt Rohrer
2012-06-12docs(*): simplify doc urlsIgor Minar
we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions
2012-06-10docs(*): fix various outdated docs and examplesIgor Minar
Closes #1030
2012-06-02doc(guide): clean up broken linksMisko Hevery
2012-06-02docs(bootstrap): rewritten bootstrap guideMisko Hevery
2012-06-01feat($route): rename template -> tempalteUrl and add support for inline ↵Misko Hevery
templates BREAKING CHANGE: template in $route definition is now templateUrl To migrate just rename `template` to `templateUrl`.
2012-05-04chore(docs): re-skin main documentationMisko Hevery
2012-04-12fix($location): properly rewrite urls in html5 mode with base url setIgor Minar
previously we were doing all kinds of checks to see if we should rewrite the url or not and we were missing many scenarios. not any more. with this change, we rewrite the url unless: - the href is not set - link has target attribute - the absolute url of the link doesn't match the absolute prefix for all urls in our app This also means that ng-ext-link attribute which we previously used to distinguish external links from app links is not necessary any more. apps can just set target=_self to prevent rewriting. BREAKING CHANGE: ng-ext-link directive was removed because it's unnecessary apps that relied on ng-ext-link should simply replace it with target=_self
2012-04-11chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a moduleVojta Jina
Create build for other modules as well (ngResource, ngCookies): - wrap into a function - add license - add version Breaks `$sanitize` service, `ngBindHtml` directive and `linky` filter were moved to the `ngSanitize` module. Apps that depend on any of these will need to load `angular-sanitize.js` and include `ngSanitize` in their dependency list: `var myApp = angular.module('myApp', ['ngSanitize']);`
2012-04-09fix(docs): change all directive references to use the normalized namesIgor Minar
2012-04-04fix(docs): remove ngModelInstant from all examplesIgor Minar
just fixing leftover code after the removal of ngModelInstant
2012-03-26feat($compile): do not interpolate boolean attributes, rather evaluate themVojta Jina
So that we can have non string values, e.g. ng-value="true" for radio inputs Breaks boolean attrs are evaluated rather than interpolated To migrate your code, change: <input ng-disabled="{{someBooleanVariable}}"> to: <input ng-disabled="someBooleanVariabla"> Affected directives: * ng-multiple * ng-selected * ng-checked * ng-disabled * ng-readonly * ng-required
2012-03-21docs(cookbook/form): fix the exampleIgor Minar
Closes #712
2012-03-13docs(input): Fix some broken links, add missing $, use ng- in examplesVojta Jina
2012-03-12fix(forms): prefix all form and control properties with $Igor Minar
2012-02-28refactor($route): remove .parent(); ng:view scope creationMisko Hevery
2012-02-28refactor(forms): Even better formsVojta Jina
- remove $formFactory completely - remove parallel scope hierarchy (forms, widgets) - use new compiler features (widgets, forms are controllers) - any directive can add formatter/parser (validators, convertors) Breaks no custom input types Breaks removed integer input type Breaks remove list input type (ng-list directive instead) Breaks inputs bind only blur event by default (added ng:bind-change directive)
2012-01-25docs(compiler): update the compiler docsMisko Hevery
2012-01-23refactor(scope.$watch): rearrange arguments passed into watcher (newValue, ↵Vojta Jina
oldValue, scope) As scopes are injected into controllers now, you have the reference anyway, so having scope as first argument makes no sense… Breaks $watcher gets arguments in different order (newValue, oldValue, scope)
2012-01-23refactor(scope): separate controller from scopeVojta Jina
Controller is standalone object, created using "new" operator, not messed up with scope anymore. Instead, related scope is injected as $scope. See design proposal: https://docs.google.com/document/pub?id=1SsgVj17ec6tnZEX3ugsvg0rVVR11wTso5Md-RdEmC0k Closes #321 Closes #425 Breaks controller methods are not exported to scope automatically Breaks Scope#$new() does not take controller as argument anymore
2011-11-30fix($browser.xhr): change method "JSON" to "JSONP"Vojta Jina
Breaks "JSON" xhr method is now called "JSONP"
2011-11-14style(docs): make jslint happy - fix some warningsVojta Jina
2011-11-14fix(doc) cleanup all api doc link warningsMisko Hevery
2011-11-14chore(scenario tests): make scenario tests pass againMisko Hevery
2011-10-14docs(cookbook): disable jsfiddle for deeplinking exampleIgor Minar
it uses extra resources, so it won't work on fiddle
2011-10-12docs(*): remove @workInProgress from everywhereIgor Minar
it's not useful any more and it only makes the docs look ugly
2011-10-12docs(forms): add ng:change docs and other fixesIgor Minar
2011-10-11chore(formating): clean code to be function() {Misko Hevery
2011-10-11feat(forms): new and improved formsMisko Hevery
2011-09-26feat(docs): use html5 history api for all routing in the docs appVojta Jina
- Configure our docs app to use new $location with html5 history api! - Update simple node web server to serve index.html for all links (rewritting). - Update .htaccess file to serve index.html for all links (rewritting). - At runtime determine the base href path and attach it to the DOM. We needed the absolute URL to get all browsers to work well. - Because of the above, we also need to dynamically determine all needed js/css resources and add them to the DOM. This was needed because FF6 would eagerly fetch resources with wrong URL since the base element is added to the dom at runtime. - All content html files were moved to the partials directory, because with the new html5 urls it was impossible to tell if request for http://domain/api/angular.filter.html was an html5 url for the html filter doc page, or an xhr/appcache request for the content html file for the html filter. f
2011-09-16fix(e2e tests): use prop() instead of attr() and quote attributesIgor Minar
Because of changes in jQuery, we need to use element().prop() instead of element().attr() to retrieve className and other element properties. Additionally all attribute selectors (e.g. input[name=value]) must have value quoted if it contains dots (".").
2011-09-08fix(docs): update docs to reflect new $location and fix e2e testsVojta Jina
2011-09-02test(jsonp): fixing jsonp e2e testsIgor Minar
- buzz api keeps on throttling our requests which makes our build fail so I'm disabling the buzz demo e2e test - the $xhr service jsonp test was modified to use jsonp on angularjs.org instead of buzz api for the same reason as mentioned above
2011-08-02feat(scope): new and improved scope implementationMisko Hevery
- Speed improvements (about 4x on flush phase) - Memory improvements (uses no function closures) - Break $eval into $apply, $dispatch, $flush - Introduced $watch and $observe Breaks angular.equals() use === instead of == Breaks angular.scope() does not take parent as first argument Breaks scope.$watch() takes scope as first argument Breaks scope.$set(), scope.$get are removed Breaks scope.$config is removed Breaks $route.onChange callback has not "this" bounded
2011-06-16Update docs from googledocsVojta Jina
* fixed typo in tutorial step-10 * revert cookbook/buzz example to use googlebuzz user
2011-06-15docs - stripping extra new linesIgor Minar
2011-06-15Updated docs/cookbook/buzz from gdocsDi Peng
With couple of fixes: * indentation + code formatting * use ng:href, ng:src * change UserId to misko.hevery so it will work now
2011-06-15Fix scenario runner on IE7, IE8Misko Hevery
* add ng:disabled, ng:checked, ng:multiple, ng:readonly, ng:selected * fetch fixed cookbook/advancedform (use ng:disabled) * fire keydown instead of change on input * remove frame when test finishes
2011-06-07Update latest docs content from gdocsVojta Jina
2011-06-06yet another docs batchIgor Minar
2011-06-06new batch of docsIgor Minar