Está en la página 1de 1

ANGULAR INTRODUCCION

$ yo angular newproject

$ grunt server force (levantar una app)

Yo angular (opciones NO) para agregar dependencias en caso de no tenerlas

Agregar libreras

$ npm install libraryname

AGREGANDO UNA VISTA AL PROYECTO

/view agregar html

Index.html

Se crea el esqueleto y se agregan las

1.- Crear Vista HTML

$ yo angular:view sshtm/viewname

App.js

url, vista, default

Creando el controlador

$ yo angular:controller viewcontroller

Creando un SERVICIO

$ yo angular:service viewservice

El controlador consume el servicio como

Angular.module(ctrl).controller(ctrl,function(servicename,$scope)){

También podría gustarte