Download SVG country flags and css, then convert the codes from the iso 3166 two character codes to three character codes.
./get_flags.sh
Then copy the flag-icon.css file into public/css and the flags directory to public/.
| |
| module.exports = function (grunt) { | |
| 'use strict'; | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| sass: { | |
| build: { | |
| files: [{ | |
| expand: true, |
| [ | |
| { | |
| "event": "send", | |
| "msg": { | |
| "ts": 1365109999, | |
| "subject": "This an example webhook message", | |
| "email": "[email protected]", | |
| "sender": "[email protected]", | |
| "tags": [ | |
| "webhook-example" |
When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |