All Questions
7 questions
0
votes
1
answer
69
views
How to Apply a default attribute to an angular component
I'm trying to format some fields into neat rows and columns, and because I have to match some other components with very specific formatting, the html that works looks like this:
<div fxLayout=&...
0
votes
1
answer
997
views
Angular @ViewChild Directive stays undefined
[EDIT: SOLUTION]
I did not import the right Directive in my app.module.ts
After including like the following, it just works and does not return undefined. :)
import { PlaceholderDirective } from '....
1
vote
1
answer
778
views
Upgrade AngularJS directive with ngModel to Angular component
I am trying to upgrade my AngularJS directive to Angular Component.
Here is the code of directive:
ng1AppModule.component('ng1Tmp', {
bindings: {p: '<'},
require: {ngModel: 'ngModel'}
});
...
0
votes
2
answers
811
views
Angular separate Sidebar
I'm using angular 4 in my project where I'm having 3 different sidebars (i.e with different content). I've enclosed an image below. In that, I want the component separation to be like. HomeScreen with ...
0
votes
1
answer
164
views
How to add class dynamically in angular 4
I'm working on a project using angular 4, How do I add class to the body of index.html only. for example
<body class="home">
<app-root></app-root>
</body>
I want ...
0
votes
1
answer
332
views
Angular 5 Data Access to Component from one of the component's child
I have below components structure;
RecipeDetailComponent
RecipeListComponent
RecipeItemComponent ( This Component is child of RecipeList)
RecipeComponent
and want to pass data RecipeItemComponent to ...
0
votes
1
answer
250
views
Angular: How to apply validation directives to a child of the custom template
I'm trying to create a custom Angular component that wraps existing Form components into a single component e.g. instead of having a label, text box, validation error spans, I have a component that ...