Questions tagged as 'angularjs'

2
answers

Is there a way to open an HTML page within a modal? As?

I have the following code that opens a modal: <div class="uk-modal" id="new_task"> <div class="uk-modal-dialog"> <div class="uk-modal-header"> <h3 class="uk-modal-title">{{ newTask.name }}</h3...
asked by 04.10.2016 / 12:26
1
answer

How to find the height of a dynamic element with angularjs?

I have a menu with accordion effect I need to find out how tall this menu is, remembering that the height is dynamic, ie when it has some open element it gets bigger. Then you need to find the position of the clicked element relative to the s...
asked by 04.02.2015 / 16:39
1
answer

Problem with ng-click + menu AngularJS

I have a menu that is populated dynamically: <div ng-controller="menuDinamicoController as vm"> <div ng-show="isAutenticado"> <img src="{{vm.fotoUser}}" id="imagemUsuario" width="50px" /> <label id="nomeUsuario"...
asked by 04.11.2014 / 15:05
4
answers

Check for image return via Javascript

How to check if the image returned with 404 error via javascript. Below a sample code, I want to check if the get of this image is 404. If I want to put a certain image, if it does not return the image. <!doctype html> <html lang="...
asked by 03.06.2014 / 19:45
1
answer

Gruntfile does not correctly rename image paths in CSS files [closed]

My Gruntfile.js is set up as follows: // Performs rewrites based on rev and the useminPrepare configuration usemin: { html: ['<%= yeoman.dist %>/{,*/}*.html', '<%= yeoman.dist %>/views/{,*/}*.html'], css: ['<%= yeoman...
asked by 23.09.2014 / 19:35
3
answers

AngularJS Date subtraction

Well, How do I subtract a day from the angle old.endDay = start.startDay; Example: startDay = 05/05/2017. endDay = 04/30/2017. I'm sorry.  in fact I wanted was to take day out of startDay and send the change to endDay. Thank you!   ...
asked by 14.06.2017 / 14:04
3
answers

How to make links with preventDefault in angular?

I'm using a function called with ng-click , through a link (Anchor). However, because of the hash # , the page is "jumping" every time I click that link. My code is this: <a ng-click="openImageModal(request)" href="#">...
asked by 27.07.2016 / 17:07
2
answers

How to use an input checkbox in the angular using Array?

I'm trying to use a Array in a input[type=checkbox] with Angle 1, but I was not successful. angular.module('app', []) .controller("Ctrl", function ($scope){ $scope.campos = [{nome: "Brasil"}, {nome: "Argentina"}, {n...
asked by 31.07.2017 / 18:28
2
answers

Request AJAX post with angularjs

Hello, I wanted to know how I make a POST request for a url with angularJS and also wanted to know how I transform a normal javascript object into a json, to send in that request.     
asked by 14.02.2015 / 07:04
2
answers

How to minify project in angularjs?

When I do the minification in the angular everything stops working     
asked by 26.03.2017 / 17:18