changed :app/text to :app/msg because it conflicts with (text)

This commit is contained in:
David Mohl 2015-10-27 15:57:02 +09:00
parent e13db21194
commit fb025bbbe9
1 changed files with 4 additions and 4 deletions

View File

@ -17,17 +17,17 @@
;; Set up our Om UI
(defonce app-state (atom {:app/text "Welcome to $PROJECT_NAME$"}))
(defonce app-state (atom {:app/msg "Welcome to $PROJECT_NAME$"}))
(defui WidgetComponent
static om/IQuery
(query [this]
'[:app/text])
'[:app/msg])
Object
(render [this]
(let [{:keys [app/text]} (om/props this)]
(let [{:keys [app/msg]} (om/props this)]
(view {:style {:flexDirection "column" :margin 40}}
(text nil text)))))
(text nil msg)))))
;; om.next parser
(defmulti read om/dispatch)