This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const inicioStates = { | |
id: 'inicio', | |
type: 'parallel', | |
states: { | |
menuOpciones: { | |
initial: 'idle', | |
states: { | |
idle: { | |
on: { | |
CLICK_INICIO_MENUOPCIONES_IDLE: 'active' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const buscarStates = { | |
id: 'file', | |
type: 'parallel', | |
states: { | |
upload: { | |
initial: 'idle', | |
states: { | |
idle: { | |
on: { | |
INIT_UPLOAD: 'pending' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Then in the app.js file we set the interceptor | |
var app = angular.module('appName', ['xml']) | |
.config(function ($routeProvider, $httpProvider) { | |
$routeProvider | |
.when('/', { | |
templateUrl: 'views/view1.html', | |
controller: 'Controller1', | |
}) | |
.when('/view2', { | |
templateUrl: 'views/view2.html', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function launchFullScreen(element) { | |
if(element.requestFullscreen) { | |
element.requestFullscreen(); | |
} else if(element.mozRequestFullScreen) { | |
element.mozRequestFullScreen(); | |
} else if(element.webkitRequestFullscreen) { | |
element.webkitRequestFullscreen(); | |
} else if(element.msRequestFullscreen) { | |
element.msRequestFullscreen(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//First we create the filter, is very simple. When you get the input it has all the items from the ngRepeat directive, then you | |
//iterate all over the array in compare the value with something, if it's right you push it into an output array. | |
'use strict'; | |
angular.module('appName').filter('filterName', function (Util, Events) { | |
return function (input) { | |
if(input && input.length > 0){ | |
var out = []; | |
for (var i = 0; i < input.length; i++) { | |
var value = input[i].counter; |