18.05.2016 Views

Mittwoch, 18. Mai, 2016

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Finishing Angular TODO application and deploying to production 127<br />

43 <br />

44 <br />

45 <br />

46 <br />

47 <br />

48<br />

49 <br />

50 New Todo<br />

51 <br />

52 <br />

53 Title<br />

54 <br />

55 <br />

57 <br />

58 <br />

59<br />

60 <br />

61 Comment<br />

62 <br />

63 <br />

65 <br />

66 <br />

67 <br />

68 Cre<br />

69 button><br />

70 <br />

71 <br />

72 <br />

73 <br />

74 <br />

75 <br />

76 <br />

If you look past the styling, the navigation all other designery stuff, you’ll see that what’s important<br />

here is the form with the title input and the comment input. Important to note is that the form has<br />

a following attribute:<br />

1 data-ng-submit="create()"<br />

and this is AngularJS was of saying “Yo, when the users clicks the submit button, let the create<br />

function handle it”. The same create function you defined in the Controllers section. Btw, don’t be

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!