From b206779846e8769a48e28cac6326152b75b69414 Mon Sep 17 00:00:00 2001 From: jokade Date: Sun, 18 Jan 2015 16:15:15 +0100 Subject: [PATCH] Release 0.1 (for sjs 0.6.0-RC1) --- build.sbt | 2 +- src/main/scala/biz/enef/angular/Directive.scala | 7 +++++++ src/main/scala/biz/enef/angular/core/Compile.scala | 13 +++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/main/scala/biz/enef/angular/core/Compile.scala diff --git a/build.sbt b/build.sbt index b9aaabd..b87c2f8 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ import SonatypeKeys._ lazy val commonSettings = Seq( organization := "biz.enef", - version := "0.1-SNAPSHOT", + version := "0.1", scalaVersion := "2.11.5", scalacOptions ++= Seq("-deprecation","-feature","-Xlint"), // work around for a bug during publishing diff --git a/src/main/scala/biz/enef/angular/Directive.scala b/src/main/scala/biz/enef/angular/Directive.scala index 2eacfd8..0a53216 100644 --- a/src/main/scala/biz/enef/angular/Directive.scala +++ b/src/main/scala/biz/enef/angular/Directive.scala @@ -15,6 +15,10 @@ import scala.scalajs.js trait Directive { def restrict: String = ??? + def transclude: Boolean = ??? + + def priority: Int = ??? + //def controller[T<:Scope](scope: T, elem: JQLite, attrs: Attributes) : Unit = ??? //def controller(scope: js.Dynamic, elem: JQLite, attrs: Attributes) : Unit = ??? @@ -32,4 +36,7 @@ trait Directive { def isolateScope: js.Dictionary[String] = ??? def postLink(scope: Scope, element: JQLite, attrs: Attributes, controller: js.Dynamic) : Unit = ??? + //def preLink(scope: Scope, element: JQLite, attrs: Attributes, controller: js.Dynamic) : Unit = ??? + + def compile(tElement: js.Dynamic, tAttrs: Attributes) : js.Any = ??? } diff --git a/src/main/scala/biz/enef/angular/core/Compile.scala b/src/main/scala/biz/enef/angular/core/Compile.scala new file mode 100644 index 0000000..084d1a4 --- /dev/null +++ b/src/main/scala/biz/enef/angular/core/Compile.scala @@ -0,0 +1,13 @@ +// - Project: scalajs-angulate (https://github.com/jokade/scalajs-angulate) +// Description: Binding to the AngularJS $compile function +// +// Copyright (c) 2015 Johannes Kastner +// Distributed under the MIT License (see included file LICENSE) +package biz.enef.angular.core + +import scala.scalajs.js + +trait Compile extends js.Object { + + def apply(element: js.Any) : js.Function3[js.Any,js.Any,js.Any,js.Any] = js.native +}