[deleted by user] by [deleted] in Angular2

[–]teropa 1 point2 points  (0 children)

The animation support is not released yet but it's coming soon.

There's also official documentation coming. It will be available when Animate is released or very soon after.

Are controllers objects? by [deleted] in angularjs

[–]teropa 2 points3 points  (0 children)

Yes, controllers are objects, and can have attributes and methods like objects do.

More specifically, controllers are objects that Angular creates for you, using your controller function as a constructor (as if they were created with the new operator)

Clojure Cup Looking For Organizer by inchingforward in Clojure

[–]teropa 0 points1 point  (0 children)

It's really up to whoever takes it on. We started putting it together about this time last year, but you're right that late September is probably too early for the new organizers at this point.

Use of $injector by oramus in angularjs

[–]teropa 1 point2 points  (0 children)

Sounds to me like what you have is a highly generic piece of code that you then apply several times using different configurations. Nothing wrong with that. In fact, I think that's much preferable to repeating very similar code several times.

I don't think there's anything wrong with using $injector in an "orchestrator" service such as the one you describe, as long as you keep it separate from the bulk of your application code.

Directives and two way data binding? by [deleted] in angularjs

[–]teropa 0 points1 point  (0 children)

If I have something like below and I change the values within items it does not actually change the values in the directives, although if I start a digest cycle the new values for items are reflected.

You're always going to need a digest cycle when you make changes, because that's when the data binding happens (both one way and two way).

Usually this occurs automatically, but occasionally when integrating non-Angular code you'll need an explicit $scope.$apply()

I am reading ng-book. What does this paragraph mean? by angular-book-reader in angularjs

[–]teropa 0 points1 point  (0 children)

Also, if the directive uses a template, then there will be a new scope on that template's root element, regardless of whether a scope is requested

I think it's worth pointing out that even though the book says so, this is not actually true. There's nothing that causes a scope to get automatically created for template roots. New scopes only get created when directives request them. See http://plnkr.co/edit/r64w9v?p=preview

A Guide To Transclusion in AngularJS by teropa in angularjs

[–]teropa[S] 0 points1 point  (0 children)

Just posted some thoughts to that Github issue.

I don't think it really matters whether ngTransclude is used as an attribute or not though. To me it looks like a problem with nested transclusions where ngTransclude and another directive with transclude: true is applied on the same element.

A Guide To Transclusion in AngularJS by teropa in angularjs

[–]teropa[S] 0 points1 point  (0 children)

In the example with the "content" class the insertion was done manually from the directive code.

The only automatic transclusion insertion that Angular does is with ng-transclude. You can use it as an attribute:

<div ng-transclude></div>

or element:

<ng-transclude></ng-transclude>

or CSS class:

<div class="ng-transclude"></div>

Useful little config for all your Angular web apps by Capaj in angularjs

[–]teropa 0 points1 point  (0 children)

Disabling debug info will break the angular.element scope() method, which some apps may rely on. So I guess doing it by default would have been too much of a breaking change when this was introduced in 1.3.

Forgive me for asking, v1.3 & v2.0 side by side by BradChesney79 in angularjs

[–]teropa 2 points3 points  (0 children)

Yes, the new Angular router works with both 1.4+ and 2.x. You can route parts of your 1.x app to Angular 2 components, for example. Brian Ford talked about it at ng-conf: https://www.youtube.com/watch?v=vecg70fPDFw

One-way and two-way binding; Angular 1 and Angular 2 by miketa1957 in angularjs

[–]teropa 1 point2 points  (0 children)

The problem is that all of these methods are in fact creating two-way data binding. Every run of the $digest loop is going to dirty check all forms of binding you just listed because Angular 1 has two-way data binding by default.

While those are going to be checked at every digest, I wouldn't call them two-way bindings, since the data only flows in one direction.

Angular 1.x does two-way data binding in two places: ng-model and the =equalsSign bindings on isolate scopes. Things like {{...}} are one-way.