Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

ngScripts #72

@PatrickJS

Description

@PatrickJS

this replaces build_scripts.ts

prior art:
riot/compiler

create directives that emulates <module import="angular2/angular2"><module> and also allow inline scripts such as

<script type="text/typescript">
  class App {}
</script>

and also inject dep angular with type="angular"

<module type="angular">
  @Component({ selector: 'app' })
  @View({ template: '<div>hello world</div>' })
  class App {}
</module>

we can also inject systemjs and es6 module loader.

We should also allow for app state management from build_scripts where we are able to control how the application is ran on the client. Or leave that feature for another module such as ngAppState

<ng-component> element

<ng-component name="app">
  <style>

  </style>

  <template view="app">

  </template>

  <module>
    import {Component, View} from '@angular/angular';
    @Component({

    })
    @View({

    })
    class App {
      constructor() {

      }
    }
  </module>
<ng-component>
  • allow Typescript/Babel(ES6/ES7)/CoffeeScript script tags
  • allow module elements
  • allow angular type module/script
  • allow element
  • use Angular 2's compiler

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions