urigo / angular-blaze-template Goto Github PK
View Code? Open in Web Editor NEWInclude Blaze templates in your angular-meteor application
Home Page: https://atmospherejs.com/urigo/angular-blaze-template
License: MIT License
Include Blaze templates in your angular-meteor application
Home Page: https://atmospherejs.com/urigo/angular-blaze-template
License: MIT License
Obviously with new npm style import-export system previous versions of meteor packages do not work properly.
Basically i get this error:
WARNING: Tried to load angular more than once.
and:
Uncaught TypeError: _angular2.default.module(...).component
Obviously "angular-blaze-template" imports meteor's angular before i manually import angular from npm.
Am i doing something wrong or should i just wait for the package updates?
Hi @Urigo ,
i'm trying to customize the
<blaze-template name="loginButtons"></blaze-template>
in this way (as specified here):
<blaze-template name="loginButtons" replace>
<div style="color: white">
<b>Foo</b>
</div>
</blaze-template>
I would simply change the component in terms of graphics. How can I do?
I think I misinterpreting the documentation.
Thanks
I've added this template into my angular /client/index.html:
<head>
<base href="/">
</head>
<template name="ironrouternotfound">
IR Not Found
</template>
<body>
<div ng-app="myapp" ng-strict-di="">
<div ui-view autoscroll="true"></div>
</div>
<blaze-template name="ironrouternotfound"></blaze-template>
</body>
Configured IronRouter to use it - /client/router.js
Router.configure({
notFoundTemplate: "ironrouternotfound"
});
However I still see the default IronRouter message:
"Couldn't find a template named "ironrouternotfound" or "ironrouternotfound". Are you sure you defined it?"
Using the blaze template {{> atForm}}
from useraccounts:bootstrap
is giving an error about a missing template: HTML template does not exists!
Here is what I have in my Angular view file:
<template name="atForm">
{{> atForm}}
</template>
<blaze-template name="atForm"></blaze-template>
Any help greatly appreciated!
When we upgraded meteor and this plugin from 0.0.1 to 0.1.0 just now, Auth0 log out button doesn't appear at all and log in button doesn't do anything when you click on it. Downgrading to 0.0.1 but keeping all the other meteor upgraded packages fixed it. I'll try and make a simpler repro setup to see if it affects anything besides Auth0.
Which commit was the 0.0.1 release?
I am trying to add the login buttons following the tutorial, but it doesn't work.
Tutorial https://www.meteor.com/tutorials/angular/adding-user-accounts
Thanks
Error in the console
ReferenceError: Template is not defined
at link (http://localhost:3000/packages/urigo_angular-blaze-template.js?050086385a20c7b191b6280798d441e60ccf2804:36:13)
at invokeLinkFn (http://localhost:3000/packages/angular_angular.js?6d4ee2c049f945acd899d01d101da60606fc5cc8:8864:9)
at nodeLinkFn (http://localhost:3000/packages/angular_angular.js?6d4ee2c049f945acd899d01d101da60606fc5cc8:8358:11)
at compositeLinkFn (http://localhost:3000/packages/angular_angular.js?6d4ee2c049f945acd899d01d101da60606fc5cc8:7754:13)
at publicLinkFn (http://localhost:3000/packages/angular_angular.js?6d4ee2c049f945acd899d01d101da60606fc5cc8:7634:30)
at link (http://localhost:3000/packages/angular_angular.js?6d4ee2c049f945acd899d01d101da60606fc5cc8:24477:38)
at invokeLinkFn (http://localhost:3000/packages/angular_angular.js?6d4ee2c049f945acd899d01d101da60606fc5cc8:8864:9)
at nodeLinkFn (http://localhost:3000/packages/angular_angular.js?6d4ee2c049f945acd899d01d101da60606fc5cc8:8358:11)
at compositeLinkFn (http://localhost:3000/packages/angular_angular.js?6d4ee2c049f945acd899d01d101da60606fc5cc8:7754:13)
at publicLinkFn (http://localhost:3000/packages/angular_angular.js?6d4ee2c049f945acd899d01d101da60606fc5cc8:7634:30)
Hi everyone!
I have some problems with this package, and i don't know how to fix it.
I followed all the angular-meteor tutorial, also i have installed this package because i want to add a wysiwyg editor whitch is supported in meteor by a "template".
This is my index.html
<head>
<title>My app</title>
<base href="/">
<!-- Google font -->
</head>
<body>
<div ng-app="simple-todos" ng-strict-di="">
<admin></admin>
</div>
</body>
My folder structure is call admin component, which call objectDetail component. There is where i need to put my text editor.
But... if i put the template in my index, automatically the app fail.
<head>
<title>My app</title>
<base href="/">
<!-- Google font -->
</head>
<body>
<div ng-app="simple-todos" ng-strict-di="">
<admin></admin>
</div>
</body>
<template name="todoList">
A couple of todos
</template>
Then in objectDetail component i have:
<blaze-template name="todoList"></blaze-template>
But it doesn't work if template is not defined.
I someone could help will be awesome!! Thanks!!
PS: Sorry for my english i'm not so good :(
Edited this comment to make it more helpful to others
Thanks for everything you've done, Uri and Alex. I was interested in some way to do minimal server-side templates.
Found the following:
Urigo/angular2-meteor#9 and Urigo/angular2-meteor#14 are closed issues to add blaze support to meteor-angular2 (won't be implemented, meteor's responsibility to handle two html processors but that doesn't exist yet)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.