aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/directive.ngdoc
AgeCommit message (Collapse)Author
2013-07-04docs(guide/directive): make directive controller minification-safeAndrew O'Brien
It is best to emphasize that the "controller" property needs to be min safe Closes #3125
2013-06-19feat(jqLite): switch bind/unbind to more recent jQuery on/offMichał Gołębiowski
jQuery switched to a completely new event binding implementation as of 1.7.0, centering around on/off methods instead of previous bind/unbind. This patch makes jqLite match this implementation while still supporting previous bind/unbind methods.
2013-06-19docs(directive): fix typosarkasm
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-05-22docs(guide/directive): clarify directive priorityJens Rantil
Fixes #2644.
2013-05-21doc($compile): clarify compile function return valueJens Rantil
If a compile function (within a directive) returns a function, it is a post-link function. Closes: #2713
2013-04-30docs(guide:directive): add directive controller usageChris Nicola
Specifically adding a directive controller to the example definition and how to use declare injectables to avoid minification errors.
2013-04-17docs(directive guide) typo in compile/link section@fbiville
The code snippet shows `{{action.description}}`, the explanation referred to it as `{{action.descriptions}}`.
2013-04-11docs(guide/directives): give more details about directive declarationLuc Morin
2013-03-29docs(directive): fix typoSrinivas Kusunam
2013-03-29docs(*): fixed typosPascal Borreli
2013-03-19docs(directive): Fix entity confusion in example.Arlen Christian Mart Cuss
2013-03-08docs(directive): minor typo fixNiel de la Rouviere
Changed "obeject" to "object"
2013-02-27feat($compile): support for dynamic template generationLuis Ramón López
`template` and `templateUrl` properties can now be optionally defined via a function. This allows templates to be dynamically generated on the fly.
2013-02-27feat($compile): add attribute binding support via ngAttr*Luis Ramón López
Sometimes is not desirable to use interpolation on attributes because the user agent parses them before the interpolation takes place. I.e: <svg> <circle cx="{{cx}}" cy="{{cy}}" r="{{r}}"></circle> </svg> The snippet throws three browser errors, one for each attribute. For some attributes, AngularJS fixes that behaviour introducing special directives like ng-href or ng-src. This commit is a more general solution that allows prefixing any attribute with "ng-attr-", "ng:attr:" or "ng_attr_" so it will be set only when the binding is done. The prefix is then removed. Example usage: <svg> <circle ng-attr-cx="{{cx}}" ng-attr-cy="{{cy}}" ng:attr-r="{{r}}"></circle> </svg> Closes #1050 Closes #1925
2013-02-25docs(guide/directives): update obsolete doc referenceVineet Kumar
Replace an obsolete reference to a nonexistent "Creating Widgets" section with a real link to "Creating Components".
2013-02-25feat($compile): '=?' makes '=' binding optionalLuis Ramón López
If you bind using '=' to a non-existant parent property, the compiler will throw a NON_ASSIGNABLE_MODEL_EXPRESSION exception, which is right because the model doesn't exist. This enhancement allow to specify that a binding is optional so it won't complain if the parent property is not defined. In order to mantain backward compability, the new behaviour must be specified using '=?' instead of '='. The local property will be undefined is these cases. Closes #909 Closes #1435
2013-02-14docs(guide): fix some invalid javascript in directive documentationDylan Pyle
Use double quotes to maintain consistency with other HTML
2013-01-17docs(guide): minor grammar fixesMatt Rohrer
2013-01-13doc(directive): Fix typos in dialog widgetLucas Galfasó
Fixes #1799
2012-12-19docs(guide): minor English corrections to the Directive guideJohn Fletcher
2012-12-18docs(directive): old syntaxMiško Hevery
2012-11-29docs(directive): correct expression, fix typo and re-wrap linesDaniel Luz
2012-11-21docs(): Fix a couple of typos in the documentationKris Jenkins
2012-11-17docs(guide/directive): fix typoJohn Hume
2012-11-11docs(guide/directive): fix names in scope '='; easier to grokTim Macfarlane
2012-11-05Update docs/content/guide/directive.ngdocMiško Hevery
docs(directive): fix typo
2012-09-13docs(directive): remove reference to old isolation syntaxMiško Hevery
2012-09-11docs(guide): fix directive interpolation example codeBrian Ford
Closes #1339
2012-08-30doc(devguide) - Fix typos and small grammatical errors in the developer guide.Steve Nicolai
2012-08-30fix(docs): Fix typos and improve grammar.Jamie Krug
2012-08-30fix(docs): Fix bad links.Jamie Krug
2012-08-27doc(directive) correct typosColin Frei
2012-07-30docs(guide): hide scenario for directive exampleVojta Jina
scenario test for this example would be tricky, we need to teach the runner how to inject mocks first.
2012-07-19fix(docs): Fixed defer to timeout change in timer directive exampleChris Dawson
2012-07-19fix(docs): Spelling errorsChris Dawson
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-08feat($compile): simplify isolate scope bindingsMisko Hevery
Changed the isolate scope binding options to: - @attr - attribute binding (including interpolation) - =model - by-directional model binding - &expr - expression execution binding This change simplifies the terminology as well as number of choices available to the developer. It also supports local name aliasing from the parent. BREAKING CHANGE: isolate scope bindings definition has changed and the inject option for the directive controller injection was removed. To migrate the code follow the example below: Before: scope: { myAttr: 'attribute', myBind: 'bind', myExpression: 'expression', myEval: 'evaluate', myAccessor: 'accessor' } After: scope: { myAttr: '@', myBind: '@', myExpression: '&', // myEval - usually not useful, but in cases where the expression is assignable, you can use '=' myAccessor: '=' // in directive's template change myAccessor() to myAccessor } The removed `inject` wasn't generaly useful for directives so there should be no code using it.
2012-06-04docs(guide): correct couple of typosunknown
2012-06-02doc(guide): clean up broken linksMisko Hevery
2012-05-04chore(docs): re-skin main documentationMisko Hevery