0
I would like to use the angular2-material but not yet left, I can not postpone the project so I have to choose, duration of the project some 2 years so stay the next 2 years at angular 1.x or use angular 2 with the light design material? http://www.getmdl.io/components/index.html " have few components"
One man project, I come from the classic Asp, doing everything in jquery+boostrap bringing/taking json from/to the server and mounting everything on the front type "Singlepage"
Below an example of one of these things: "I’ve always been proud" but when I saw the power of angular ai was passion for the thousandth view [I still find it very verbose] + 2 improved a little:
/**
 * Form Submit
 * HTML exemplo:
 * 	<form action="/login" method="post" data-submit> ... </form>
 * JS:
 * 	$(function() {
 * 		$('form[data-submit]').formSubmit({
 * 			sucesso: function(resp){
 * 					... trata retorno aqui
 * 				},
 * 			falha: function(resp){
 * 					... tratar retorno aqui
 * 				}
 * 		});
 * 	});
 */
$.fn.formSubmit = function(opt) {
   		var form = $(this);
		$.ajax({
    	  type: form.attr('method'),
        	url: form.attr('action'),
        	data: form.serialize()
	      }).done(function(resp) {
	    	  // load function
	    	  //console.log(resp);
	    	  (opt.sucesso(resp));
	      }).fail(function(resp) {
	    	  // load function
	    	  //console.log(resp);
	    	  (opt.falha(resp));
	      });
}
Welcome to the SOPT. The way your question is at the moment, and very likely that the community considers it mainly based on opinions, that is, each has a different view of what should be done/used. Edit your question to make it more objective and with a well-defined purpose. See here how to ask.
– Omni