Nicholas Boll
Member since Sep 1, 2015
- Profile: /members/12804-nicholas-boll.htm
- Comments: 2
Recent Blog Comments By Nicholas Boll
-
Injecting "Newable" Classes Using TypeScript And Dependency-Injection In Angular 2.4.1
Posted on Dec 19, 2018 at 5:54 PM
I found this helpful for extending classes inside a DI container: interface A { new(): A // required if using DI container foo(): void } function DIContainer(A: A) { class B extends A { } } Shown here: http://www.typescriptlang.org/play/#src=interface%20A%20%7B%0D%0... read more »
-
Accessing The View-Model Inside The Link Function When Using Controller-As In AngularJS
Posted on Sep 1, 2015 at 10:37 PM
@Hansmaad, require: ['ngModel', 'myDirectiveName'] Controllers will be passed as an array. The directive string has to be the exact string that defines the directive.... read more »