All Questions
Tagged with angularjs components
353
questions
0
votes
0
answers
32
views
How can i implement common new Window Component in Angular 15?
I'm using Angular 15.
I want to create a new common window component. For example:
<div
class="detail-icon-container"
(click)="windowComponent.openNewWindow()"
></...
0
votes
1
answer
36
views
ng-controller error in index.html "The controller with the name 'MainController' is not registered"
I have been looking for an answer to this for a while now, and at first glance it seems similar to other controller registration issues with angularJS, but there hasn't been a good answer for my ...
0
votes
0
answers
44
views
Use argument in handler function for Stencil component
In an AngularJS project i use a custom Stencil component called rvn-chip to display teams with the option to remove the team.
This is done by the rvnRemove function inside the rvn-chip component, ...
1
vote
0
answers
798
views
How to load components dynamically without their Host Wrapper Tag
I'm loading component template during Drop Event using "createComponent()" method of ViewContainerRef class. all works okay but it loads component with it's Host Wrapper (selector) tag. but ...
0
votes
2
answers
484
views
Problem when generating the component in Angular
I am facing this issue, I am unable to generate the component in angular, I tried deleting node-modules, tried uninstalling angular cli, again installed.
0
votes
1
answer
174
views
how to create a function inside the class component in angular 13?
I have code for switch toogle but the problem i cant get rid of the erro says 'unexpected token' its expecting constructor or method within a class. This is Angular component and class that needs to ...
1
vote
0
answers
18
views
AngularJS - how can my components pass info to each other?
How can I get a value taken by one of my components to be passed to another component in the same module?
I'll try to simplify the code I'm working with to focus entirely on the problem. So say we ...
0
votes
1
answer
67
views
Creating and calling Angular Services
Good morning, below I made the "if" condition inside ngOnInit in which it solves my problem with routes, in which the user is inside the manage-actives url and if he put a / after and wrote ...
0
votes
1
answer
648
views
Data passing from one component to another component in angular.js (not in angular)
Here I have made a controller Product.js where i have tried to pass the data from Manual PrescrsiptionLeft.tpl.liquid to ManualPrescriptionRight.tpl.liquid. But whenever i have tried to pass the data ...
0
votes
1
answer
202
views
New Entry Not reflacting in table after inserting New record in CRUD angular app
In Angular 13, I created basic CRUD app of employee. When i insert new data and hit submit it run the createEmployee() service and print data on console. Then it redirect to home page that shows all ...
1
vote
2
answers
532
views
How to prevent a component from starting/rendering when the required parameters are not filled correctly?
Say I have a component and I have bindings that are not optional, like so
angular.module("foo").component("fooComp", {
bindings: {
notOpt: "<",
},
...
1
vote
0
answers
122
views
FormControl not patching values to multiple select
I'm working on a angular application but I ran into a problem I cant find the solution to. I'm trying to patch some preselected values to a form control (mat-select multiple) but it just wont show the ...
0
votes
2
answers
680
views
How to pass a class member variable to another component angular?
car.ts has "isNewCar" variable in "export class Car{}", and I need to export the "isNewCar" variable to another component carSale.ts which is in a different directory, ...
0
votes
0
answers
40
views
Angular.js : child not getting parent's variables
I find myself needing to write up this code: vm.model = $scope.$parent.$ctrl.model, in order to access variables that I felt should be readily available in the child. How can I have them injected ...
0
votes
1
answer
304
views
AngularJS - Keep route component in cache (keep-alive)
I need to keep the state of a component A in cache, so that when I navigate from A to B or C and I come back to A it does not get re-render again (it also includes a API call in its constructor, so it'...