Skip to content

Instantly share code, notes, and snippets.

View michelnovellino's full-sized avatar

Michel Novellino michelnovellino

View GitHub Profile
@michelnovellino
michelnovellino / controller.js
Last active March 7, 2019 15:42
inputs dinamicos
bz = this;
/* dentro del controlador usamos un onInit y creamos el array que contendra los valores
para que el ng repeat pueda renderizar los inputs y los 2 unicos metodos necesarios para que funcione */
bz.$onInit = () => {
$scope.datesList = [new Date()];
};
/*recibimos el valor del input (item) comprobamos que exista, y hacemos un push al array */