Skip to content

Commit

Permalink
Simplified the init() method and documented it
Browse files Browse the repository at this point in the history
  • Loading branch information
joescii committed May 10, 2014
1 parent c48816b commit 4becda1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ libraryDependencies ++= {

Seq(
// Other dependencies ...
"net.liftmodules" %% ("ng_"+liftEdition) % "0.3.1" % "compile"
"net.liftmodules" %% ("ng_"+liftEdition) % "0.4.0" % "compile"
)
}
```
Expand All @@ -66,7 +66,13 @@ class Boot {
def boot {
// Other stuff...

net.liftmodules.ng.Angular.init()
net.liftmodules.ng.Angular.init(
// Set to true if you plan to use futures. False otherwise to avoid an unneeded comet
futures = true,

// Set to the CSS selector for finding your apps in the page.
appSelector = "[ng-app]"
)
}
}
```
Expand Down
5 changes: 3 additions & 2 deletions test-project/src/main/scala/bootstrap/liftweb/Boot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class Boot {

def angular() = {
import net.liftmodules.ng._

Angular.init(UnmanagedLibs(futures = false, appSelector = ".application"))

AngularJS.init()
Angular.init(futures = false, appSelector = ".application")
}
}

0 comments on commit 4becda1

Please sign in to comment.