I'm working with $ mdToast which is used in multiple notification locations.
I would like to create a global function for it, which would look something like this:
function alerta(texto){
$mdToast.show(
$mdToa...
I'm new to angularJS and I'm seeing the directives part, and I see that there is the restrict element and restrict attribute. I understood what each one does, but it was not clear when to use one or the other, or both?
Hello, I work with angular, and I'm using UI-ROUTE
I'm trying to put two views on the same page and n with you.
Here's how I want the views to appear:
WhenIclickon"My cadastral data" it is for him to display on the right side the info of the...
Hello, use angularJS and wanted to put it to change the slides every 10 sec.
I already tried some codes and I could not.
Does anyone have a tip?
Here's my controller.
(function () {
'use strict';
angular.module('scases')
.controller('Banne...
Hello, I'm using the "Angular Leaflet Directive" directive ( link ) with Leaflet map.
My question is the following, is there the possibility of inserting some variable or scope in this extension?
angular.extend(vm, { // ESTENDE AS PROPR...
I'm starting with angular and I have a question. I have the following scenario:
I created a directive with the responsibility of displaying message on the screen. Below her code.
message.js
"use strict";
angular.module("layout")
.directive...
I'm studying angular and I'm having a problem.
I created a directive called action, I'm trying to get the click on the element ul > but it does not work using find and I can not put ng-click because it may contain N tags ...
Example...
I'm adding classes using ng-class , but when I try to find this element starting from a directive, I can not find them.
Link to a plunker with example code: link
.directive('step1', function(loadTemplate) {
return {
link:...
I'm trying to add an 'active' class to my link as follows:
<a href="#/requests/{{request.id}}/processes" active>Processes</a>
That produces output (chrome console)
<a href="#/requests/7cgSiSdaIR/processes" active="">Proc...