I have two services one is an Auth service and the other is an Analytics service and they exist in different libraries. The analytics service is used ...
I have two services one is an Auth service and the other is an Analytics service and they exist in different libraries. The analytics service is used ...
Actually I want to catch errors on all http requests using custom decorators. My actual code looks like this: I want to convert these kind of func ...
Is it possible to at runtime query the declarations of a module class that is decorated with an @NgModule. So, what I am trying to accomplish is ro ...
I want to use captured phase of @HostListener. Above code use default(bubble phase). One of the case I want to use captured phase, please help me, ...
I am new to angular and I have the following situation which is I have a service getAnswers():Observable<AnswerBase<any>[]>and two compone ...
I am new to learn Angular. I was learning about angular's decorators on angular.io. There is not much information about the @Attribute decorator. Plea ...
I'm trying to create some functionality wrapping Angular2 decorators. I want to simplify the process of adding a CSS class to a host so I created the ...
I generate in my parent component an array of objects and I pass it through an input decorator to the child Component(Chart Element). I declare my ar ...
Is it possible to get component class name or component reference using selector name in Angular 2? In component 2 is it possible to get the compon ...
An Angular component has decorators: I've got an Angular library where a lot of code repetitions could be avoided (and bundle size reduced) if I co ...
I am getting started with Angular version 2 and came across @Component Decorator. I could recall that AngularJS(1.x) also had a concept of Decorator w ...
I have a base generic class BaseModel and a set of subclasses which are the models to my solution. What I'd LIKE TO DO is something like: And in th ...
Why in components or directives do the metadata or decorators have the @ symbol (e.g. @Component, @Directive)? What is the purpose of it, and when sh ...
From official docs we know that Component decorator allows you to mark a class as an Angular component and provide additional metadata that determ ...
I wrote three services for an Angular 2 app, with the configuration that two are injected into the third and used there. After importing the two (all ...
I am currently running an Angular 2 demo using TypeScript. There are two files: the index.html file that is being imported as a template and the TypeS ...
Is there a way to get all component or directive property with @Input decorators in angular 2? ...
I'm trying to figure out how I can access the selector that we pass into the @Component decorator. For example @Component({ selector: 'my-componen ...