Ori Calvo
Member since Jan 1, 2015
- Profile: /members/12482-ori-calvo.htm
- Comments: 8
Recent Blog Comments By Ori Calvo
-
Creating A Pipe That Can Consume Component Methods In Angular 4.4.0-RC.0
Posted on Sep 7, 2017 at 11:15 AM
We can to that together. Pick a sexier name for the pipe and I will create a github repo for the implementation... read more »
-
Using Abstract Classes As Dependency-Injection Tokens For Swappable Behaviors In Angular 4.2.3
Posted on Sep 7, 2017 at 10:24 AM
Implementing an abstract class ... tell it to a Java/C# guy and it will blew his mind... read more »
-
Creating A Pipe That Can Consume Component Methods In Angular 4.4.0-RC.0
Posted on Sep 7, 2017 at 10:12 AM
Very nice trick. Its worth its own NPM package ... don't you think ?... read more »
-
Adding Custom Typings Files (*.d.ts) In An Angular 2 TypeScript Application
Posted on Oct 20, 2016 at 10:14 AM
In case you just want to compile successfully the expression "module.id" you can install the NodeJS typings by running typings install dt~node --global It offers the following definitions interface NodeModule { exports: any; require: NodeRequireFunction; id: string; file... read more »
-
The Import Statement Creates A "Live" View Of Modules In ES6 And TypeScript In Angular 2
Posted on Aug 12, 2016 at 1:19 PM
Indeed. You just explained me better than I ...... read more »
-
The Import Statement Creates A "Live" View Of Modules In ES6 And TypeScript In Angular 2
Posted on Aug 6, 2016 at 5:50 PM
Based on your code samples I am guessing that the Typescript compiler is configured to "module": "system". If you change that to "module": "commonjs" then the generated JavaScript is simpler and is more predictable. Typescript will convert "export var num... read more »
-
Scope.$applyAsync() vs. Scope.$evalAsync() in AngularJS 1.3
Posted on Mar 4, 2015 at 6:10 AM
I found it useful to rename $evalAsync. I call it $digestAsync Now, if we compare $digestAsync vs. $applyAsync it is quite obvious what are the differences: 1. $applyAsync queues a request for $apply while $digestAsync queues a request for $digest 2. Executing $applyAsync inside apply phase will ... read more »
-
Using Base Controllers In AngularJS - An Experiment
Posted on Jan 1, 2015 at 3:44 AM
What about writing a controller as a "normal" JavaScript class and then use Angular "as" syntax This combination allows you to define a controller that inherit from whatever class you want See my post about it at: http://blogs.microsoft.co.il/oric/2015/01/01/base-controller-ang... read more »