I have the following "directve":
app.directive('modal', ['$window', function ($window) {
return {
restrict: 'C',
link: function (scope, element, attrs) {
scope.onResizeFunction = function() {
console.log(attrs.id);...
I have my following screen:
The side menu comes from an api List with user permissions
I have my classes:
public class Menu {
public int Id {get;set;}
public string Nome {get;set;}
}
public class Item {
public int Id {get;s...
I'm trying to do a cleanup on a form, used $ setPristine () from angularJs ...
When attempting to clean a form with:
$scope.reset = function(){
$scope.form.$setPristine();
$scope.perfilDeAcesso = '';
};
It works normally but I'm...
I need to create a directive but for the sake of organization I would like to do in a class, but it is giving an error that I can not identify.
What I have is the following:
My class:
class MyDirective
restrict: "E"
replace: true
scop...
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 ....
I need to update a div after selecting the option in ng-option.
Controller.js
$scope.prop = {
"type": "select",
"name": "Service",
"value": "CDI",
"values": [ "CDI", "IBOVESPA"]
};...
I've been working with AngularJs and Angular2 + for almost two years and recently, in Angular2 +, I came across a different situation that made me wonder if it was a coincidence or because of the Angular version I'm using. But does anyone know t...
Hello, I'm picking up a little to create a menu like the one below in a project.
I've already tested and calling that specific js works, but there for some reason it's not cheering.
Do you have any idea how to create with directives? I'm breakin...
I'm working with a simple application using AngularJS that makes use of the webcam. To work with this I'm using dependency "ng-webcam", but I'm not sure how to use it. I searched on some sites, but nothing that really helped me. Does anyone know...
I have a link that perfectly downloads a file:
<a ng-if="slide.link && slide.link != 'null' && slide.anexos_id" href="{{ slide.link }}" download="'{{ slide.anexos_name }}'" target="_blank">
<...