fd-angular-core
Requirements
- a
Promise
polyfill.
Getting started
; @ { thismessage = "Hello world!"; } { // can return a promise } { } { } ; // => Promise
@Inject
@ {} @ {}
$injector.superConstruct
and $injector.superCall
{ $injector; // or: // $injector.superConstruct(this, locals); } { $injector; // or: // $injector.superCall(this, "aMethod", locals) }
@Service
@Service// or: @Service('Foo') {}// this service is injectable as 'Foo'
@Controller
@Controller// or: @Controller('Foo') {}// this controller is injectable as 'Foo'
@Component
@Component// or: @Component({ ... }) {}// this component can be used as `<foo>` or `<div foo></div>`// and uses the `./components/foo/foo.html` template
options: restrict
, scope
, template
, templateUrl
Set template
to false
to prevent the default template from being used.