angularjs

package module
v0.0.0-...-8c6312c Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2017 License: BSD-2-Clause Imports: 1 Imported by: 1

README

go-angularjs

A wrapper for AngularJS to be used with GopherJS.

This project is not maintained any more. Suggested forks:

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Service

func Service(name string) *js.Object

Types

type Event

type Event struct {
	*js.Object
	KeyCode int `js:"keyCode"`
}

func (*Event) PreventDefault

func (e *Event) PreventDefault()

type HttpService

type HttpService struct{}

func (*HttpService) Get

func (s *HttpService) Get(url string, callback func(data string, status int))

type JQueryElement

type JQueryElement struct{ *js.Object }

func ElementById

func ElementById(id string) *JQueryElement

func (*JQueryElement) On

func (e *JQueryElement) On(events string, handler func(*Event))

func (*JQueryElement) Prop

func (e *JQueryElement) Prop(name string) *js.Object

func (*JQueryElement) SetProp

func (e *JQueryElement) SetProp(name, value interface{})

func (*JQueryElement) SetVal

func (e *JQueryElement) SetVal(value interface{})

func (*JQueryElement) Val

func (e *JQueryElement) Val() *js.Object

type Module

type Module struct{ *js.Object }

func NewModule

func NewModule(name string, requires []string, configFn func()) *Module

func (*Module) NewController

func (m *Module) NewController(name string, constructor func(scope *Scope))

type Scope

type Scope struct{ *js.Object }

func (*Scope) Apply

func (s *Scope) Apply(f func())

func (*Scope) EvalAsync

func (s *Scope) EvalAsync(f func())

Jump to

Keyboard shortcuts

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