Questions tagged as 'angularjs-directives'

3
answers

Apply "datepicker" to element after angular call

I'm having a problem, when loading an HTML block of the page via angular, the elements that have the class ".datepicker", activate the jquery of the "datepicker" plugin, however, so I noticed, the action that binds of this block is occurring aft...
asked by 14.11.2014 / 17:36
1
answer

Tree menu / collapse with three levels

I'm creating a navigation sidebar for an application in AngularJS. The structure is basically a tree menu, however each level has different interactions (which I will still build). For example, the first and second levels will only show and hide...
asked by 06.10.2014 / 19:12
1
answer

Redeem data from another angular component

I have a component called login that when login completes the data of the user object, I need to get the "charge" field of this object and receive it in another component. I've tried: login.component.ts: public usuario: Usuario = new...
asked by 06.07.2018 / 17:21
1
answer

How to create a directive in AngularJs that creates a mask and did not modify the ng-model?

I created a directive where it serves as a mask for checking account, so when I type a value, always the rightmost value in the input is the digit of my account, until then beauty is working. The problem is that I do not want to change the value...
asked by 19.04.2018 / 19:16
1
answer

Set the component / app Angular 2 in the body tag

I would like to set the <body> tag as the root of my Angular application 2 instead of creating a <my-app> (eg) child tag.     
asked by 17.06.2017 / 06:56
0
answers

Angular2 Update variables between components

I'm starting at angular 2 and would like to know the best way to do this: I have 2 components, toolbar.component and profile.component. When you update the name of the logo and your photo (this already works) I need to update this in the to...
asked by 19.04.2017 / 16:36
1
answer

Load pages from the database

How do I load pages from the database, so that the AngularJS policies work? Currently, I'm loading pages with jQuery. The page loads perfectly. It turns out that when this occurs, the startup cycle of AngularJS has already been terminated and...
asked by 16.01.2017 / 00:28
2
answers

How to check in an Angular directive if the parent node is a link?

I need to check if my xx-chip directive is inside a link. I can not use jQuery in this application, only Angular. <a href> <xx-chip></xx-chip> </a> Thank you.     
asked by 05.05.2016 / 13:55
0
answers

Error passing request attribute to an angular directive

I have to pass an array of objects to an angular directive, but I have the error below. How do I solve it? angular.js:12330 Error: [$parse:ueoe] Unexpected end of expression: [{ http://errors.angularjs.org/1.4.3/$parse/ueoe?p0=%5B%7B at an...
asked by 23.03.2016 / 18:20
0
answers

Returning child routes in an abstract view in Angular JS

I am making a directive to create a Wizzard system, where the navigation of this wizzard will depend on the number of routes that is defined in a parent route (abstract). I need to know if there is any way I can start a controller when I bring a...
asked by 19.11.2015 / 14:01