What Are We Making Here, Anyway?
Below You can test the Angular application that I'll show you how to make in this tutorial (We aren't using any css here, and my blog is automatically adding some styling to the webapp so yours might look slightly different when you drag the files into your browser):
Add a new task here:
Let's See Some Code
Ok. I'm going to show you the html file, and we'll dissect it together. You can copy this whole snippet and save it as MyHtmlFile.html (the name really doesn't matter).
Let's run through what's going on here.
This is quite a simple file. Programmers shouldn't be bothered will classes and all that nonsense. ;)
Putting It All Together
Save these two files in the same folder in your computer. Then just drag the MyHtmlFile.html file into the browser and it should work. If you don't want to put them in the same folder then you just need to change the path in your MyController.js script tag to reflect where you have it, using either the relative or absolute path.
The posts on this site are written and maintained by Jim Lynch. About Jim...