All Questions
Tagged with angular-compiler angular-components
7 questions
0
votes
1
answer
976
views
Angular: Overriding DatePipe in node_module components
Problem: I have an external library in my angular app with components. Some of this components use Angular DatePipe internally to transform dates in the 'shortDate' format. I don't really have the ...
0
votes
1
answer
247
views
Can't bind to "attribute" && "app-component" isn't a known element
I've a HUGE problem. The entire thing started with this: Fix corrupted HTML file or decompile Angular Component
My PC suddently crashed and from that event it become worse every second. I get weird ...
0
votes
1
answer
2k
views
I have a problem with components in angular [closed]
Hello I'm newbie in Angular and took a course in this framework and I have a problem with an error nd I don't understand how to fix it.
import {Component } from '@angular/core';
code:
@Component{{
...
-1
votes
1
answer
220
views
angular pass data to component created & compiled on the fly
A basic input component is created on the fly
const compTag = 'my-input';
const template = `<${compTag}></${compTag}>`;
my-input is an input which implements the ControlValueAccessor and ...
0
votes
1
answer
3k
views
Angular component input static typing
I have 2 angular components.
ButtonComponent that has an input of type ButtonText
@Component({
selector: 'app-button',
template: '<h1></h1>',
})
export class ButtonComponent {
@...
0
votes
2
answers
3k
views
Angular: How to use shared modules in a Dynamic Component?
I'm creating dynamic component in Angular v6 using compileModuleAndAllComponentsAsync of angular compiler with same below code.
viewChangeMethod(view: string) {
let template = `<span>${...
2
votes
0
answers
945
views
Render html element string(with the custom directive on element.) Angular 4.3+ with AOT
I have HTML element string coming from the backend with the custom directive on element.
For example:
str = "abc xyz <span [customDirective]='2'>qwerty</span> pqrs"
I want to ...