Questions tagged as 'angularjs-components'

1
answer

Javascript: ChartJS - How to highlight "piece" of the graph when user clicks?

I'm working with Chart.js and my donut chart is already cute, but I would like that if the user clicks on a part of the graph the "piece" is highlighted ... it can be growing, getting in 3d Has anyone done? As requested, follow the code: cont...
asked by 10.11.2016 / 19:59
2
answers

Angular 1 - Using the bindings in the controller - Component

I'm using AngularJs, in creating a component I need to access the bindings in the controller of my component. In html I'm calling the component like this: <component type='tipo' urlid='meuid'></component> I'm using the second...
asked by 16.01.2017 / 12:25
1
answer

Update child component attributes

I'm making a very simple accordion component. A list of items where I click on one and it opens; if it already has some open, it closes and the other one opens. <ns-accordion-item is-show="false"> <accordion-head> <h3>...
asked by 30.08.2017 / 19:40
1
answer

Access methods through a parent component in a child with Angular 1

Hello, I'm having a lot of trouble getting information between 2 components working with Angular 1. This is my example: angular.module("parent",["child"]).component("parent",{ template : "<p> <child name></child> </div&g...
asked by 26.12.2016 / 18:57
1
answer

How to receive a directive within a component in AngularJS

This photo illustrates what I want to do: Link to TOTVS AngularJS documentation This is the snippet of form I'm trying to do this. I am getting the components required , number and maxlength within validation ....
asked by 03.12.2018 / 16:21
1
answer

How to add dynamic buttons per page loaded?

My controller calls factory Action and adds buttons on the page I'm loading, see below controller: class AgenciesListController { /* @ngInject */ constructor(Action) { this.action = Action; this.action.addButton({ tit...
asked by 20.10.2016 / 18:49
2
answers

How to execute a function on one component and affect another component - Angular 6

I would like to know how I can through a component affect another component in the angle 6. These components are not parent and child. They are different. <app-navegacao></app-navegacao> <router-outlet></router-outlet>...
asked by 02.10.2018 / 20:02