aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/directive.ngdoc
AgeCommit message (Collapse)Author
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