ng

package
v3.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ANGULAR_VERSION = "1.2.2"

Functions

func App

func App(module string) types.Attribute

take module

func Bind

func Bind(expr string) types.Attribute

take expression

func BindHtml

func BindHtml(expr string) types.Attribute

func BindTemplate

func BindTemplate(s string) types.Attribute

take string

func Blur

func Blur(expr string) types.Attribute

func Change

func Change(expr string) types.Attribute

func Checked

func Checked(expr string) types.Attribute

func Class

func Class(expr string) types.Attribute

func ClassEven

func ClassEven(expr string) types.Attribute

func ClassOdd

func ClassOdd(expr string) types.Attribute

func Click

func Click(expr string) types.Attribute

func Cloak

func Cloak() types.Attribute

take nothing

func Controller

func Controller(expr string) types.Attribute

func Copy

func Copy(expr string) types.Attribute

func Csp

func Csp(expr string) types.Attribute

func Cut

func Cut(expr string) types.Attribute

func Dblclick

func Dblclick(expr string) types.Attribute

func Disabled

func Disabled(expr string) types.Attribute

func Focus

func Focus(expr string) types.Attribute

func Form

func Form(s string) types.Attribute

func Hide

func Hide(expr string) types.Attribute

func Href

func Href(template string) types.Attribute

take template

func If

func If(expr string) types.Attribute

func Include

func Include(s string) types.Attribute

func Init

func Init(expr string) types.Attribute

func Keydown

func Keydown(expr string) types.Attribute

func Keypress

func Keypress(expr string) types.Attribute

func Keyup

func Keyup(expr string) types.Attribute

func List

func List(s string) types.Attribute

func Model

func Model(s string) types.Attribute

func Mousedown

func Mousedown(expr string) types.Attribute

func Mouseenter

func Mouseenter(expr string) types.Attribute

func Mouseleave

func Mouseleave(expr string) types.Attribute

func Mousemove

func Mousemove(expr string) types.Attribute

func Mouseover

func Mouseover(expr string) types.Attribute

func Mouseup

func Mouseup(expr string) types.Attribute

func NonBindable

func NonBindable() types.Attribute

func Open

func Open(expr string) types.Attribute

func Paste

func Paste(expr string) types.Attribute

func Readonly

func Readonly(expr string) types.Attribute

func Repeat

func Repeat(tempVar string, collection string) types.Attribute

func RepeatEnd

func RepeatEnd() types.Attribute

func RepeatKeyVal

func RepeatKeyVal(tempKey string, tempVal string, collection string) types.Attribute

func RepeatStart

func RepeatStart(tempVar string, collection string) types.Attribute

func RepeatStartKeyVal

func RepeatStartKeyVal(tempKey string, tempVal string, collection string) types.Attribute

func RepeatStartTrackBy

func RepeatStartTrackBy(tempVar, collection, trackBy string) types.Attribute

func RepeatTrackBy

func RepeatTrackBy(tempVar, collection, trackBy string) types.Attribute

func Script

func Script(id string, elem *element.Element) types.HTMLString

func Selected

func Selected(expr string) types.Attribute

func Show

func Show(expr string) types.Attribute

func Src

func Src(template string) types.Attribute

func SrcSet

func SrcSet(template string) types.Attribute

func Style

func Style(expr string) types.Attribute

func Submit

func Submit(expr string) types.Attribute

func Switch

func Switch(expr string) types.Attribute

func SwitchDefault

func SwitchDefault() types.Attribute

func SwitchWhen

func SwitchWhen(s string) types.Attribute

func Transclude

func Transclude() types.Attribute

func Value

func Value(s string) types.Attribute

Types

type Decorator

type Decorator struct {
	Model         string         // ng-model="{string}"
	Required      string         // ng-required
	MinLength     int            // ng-minlength
	MaxLength     int            // ng-maxlength
	Pattern       string         // ng-pattern
	Change        string         // ng-change
	True          string         // ng-true-value
	False         string         // ng-false-value
	NoTrim        bool           // ng-trim="{boolean}"
	OptionsArray  *OptionsArray  // ng-options="{comprehension_expression}"
	OptionsObject *OptionsObject // ng-options="{comprehension_expression}"
}

func (Decorator) AttrString

func (d Decorator) AttrString() string

type OptionsArray

type OptionsArray struct {
	Array     string //     Array / object: an expression which evaluates to an Array / object to iterate over.
	Value     string //     Value: local variable which will refer to each item in the Array or each property Value of object during iteration.
	Label     string //     Label: The result of this expression will be the Label for <option> element. The expression will most likely refer to the Value variable (e.g. Value.propertyName).
	Select    string //     select: The result of this expression will be bound to the model of the parent <select> element. If not specified, select expression will default to Value.
	Group     string //     group: The result of this expression will be used to group options using the <optgroup> DOM element.
	TrackExpr string //     trackexpr: Used when working with an Array of objects. The result of this expression will be used to identify the objects in the Array. The trackexpr will most likely refer to the Value variable (e.g. Value.propertyName).
}

func (OptionsArray) String

func (s OptionsArray) String() string

type OptionsObject

type OptionsObject struct {
	Object string //     Array / object: an expression which evaluates to an Array / object to iterate over.
	Value  string //     Value: local variable which will refer to each item in the Array or each property Value of object during iteration.
	Key    string //     key: local variable which will refer to a property name in object during iteration.
	Label  string //     Label: The result of this expression will be the Label for <option> element. The expression will most likely refer to the Value variable (e.g. Value.propertyName).
	Select string //     select: The result of this expression will be bound to the model of the parent <select> element. If not specified, select expression will default to Value.
	Group  string //     group: The result of this expression will be used to group options using the <optgroup> DOM element.
}

func (OptionsObject) String

func (s OptionsObject) String() string

type Pluralize

type Pluralize struct {
	Count  string
	When   string
	Offset int
}

func (Pluralize) Attrs

func (p Pluralize) Attrs() []types.Attribute

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL