Saturday, December 21, 2013

Getting Angular baked into blogger


Hello {{name}}

Well it looks like I can inject angular into blogger. You've just got to go edit your html template. Go to the 'Templates' page and there should be a big 'Edit HTML' button. Click that and inject the angular script wherever you prefer, header or footer. Then just stick the ng-app='' at the end of your <html> tag.

Now you can inject some controllers throughout your site. I suppose if you wanted to wrap your entire site up in an angular app, you'd have to start doing some more complicated things. 

Blogging

So far all my blogging has been done through my own wordpress server, or applications. But I've found so far that I'm not very good at keeping a blog up. Perhaps my ip changes, or my server's fan goes out, or my power dies and I have to manually start up some service to get everything to work. So I'm moving my blogging to blogger so that I don't have to worry about all of that.

Some things I enjoyed about running my own server:

  1. I could determine html headers on my site
  2. I could do whatever I wanted to my html (Inject code formatting javascript, or even little webapps)
  3. I enjoyed controlling plugins, etc that I could use on the blog
Some things that irritated me:
  1. An update would wreck the blog
  2. Managing comments and spam
  3. Keeping the server up and running
  4. Worrying about bandwidth sharing
Since I'm a part of Google Development Groups I guess the best bet for an online blog would be the google version of it.

I'll blog about some of my coding stuff to make sure I can put up little code snippets, and perhaps upload zip files that can be downloaded.

Next I'll try and inject some javascript apps into the blog and see if that works, I love providing samples inline.

Wish me luck!