This looks really cool:
http://valor-software.com/ng2-bootstrap/
but when I try pasting the Typeahead html/js into my angular2 beta 15 app
to test it, I get this very cryptic console error:
*Error: SyntaxError: Unexpected token <(…)*
ZoneDelegate.invoke @ angular2-polyfills.js:390
Zone.run @ angular2-polyfills.js:283(anonymous function) @
angular2-polyfills.js:635
ZoneDelegate.invokeTask @ angular2-polyfills.js:423
Zone.runTask @ angular2-polyfills.js:320drainMicroTaskQueue @
angular2-polyfills.js:541
cancelFn.invoke @ angular2-polyfills.js:493
Also, in my Network tab of developer tools, I notice that "ng2-bootstrap/"
is being loaded by initiator "file:///..." (entire path to ng2-bootstrap
folder) whereas everything else is loaded with initiator
"angular2-polyfills.js"
Any thoughts?
I use in my main app:
import { TypeaheadDemo } from "../directives/TypeaheadDemo"
@Component({
selector: 'report',
// We MUST start with ./ to work properly inside QWebView in qxs. But
apparently the path is relative to index.html.
templateUrl: './src/pages/report.html',
directives: [Multiselect, MultiselectDate, FullName, Polarmap, NgIf, NgFor,
NgStyle, NgModel, TypeaheadDemo]
})
and basically pasted the .ts and .html code from the URL above into its own
.t and .html file, with paths modified to match my file structure.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.