gen/writers/angular.go
func path(a *gen.Action) string {
	pattern := a.PathPatterns[0]
	vars := pattern.Variables
	ivars := make([]interface{}, len(vars))
	for i, v := range vars {
		ivars[i] = interface{}(":" + v)
	}
	return fmt.Sprintf(pattern.Pattern, ivars...)
}
func path(a *gen.Action) string {
	pattern := a.PathPatterns[0]
	vars := pattern.Variables
	ivars := make([]interface{}, len(vars))
	for i, v := range vars {
		ivars[i] = interface{}(":" + v)
	}
	return fmt.Sprintf(pattern.Pattern, ivars...)
}
// Path for given action, for now simplify and take first path in PathPatterns.
// In the future we may want to create one "action" in generated JS per path.