Comments (10)
Any plans on this one? Can I help out?
from ngmeta.
I didn't want to re-enable state change events, so I did this HACKY solution that works on my case:
// file: app.run
$transitions.onFinish({}, function(trans) {
$rootScope.$broadcast('$routeChangeSuccess', trans.to());
});
I used ngRoute event because I'm not using ngRoute anyway.. but it might cause issues on some cases.
from ngmeta.
Damn.. I´m just about to get started on adding this module to our app.. to bad it doesn't´t work whit 1.0
I guess that this should be easy to update and just use the $transitions.onSuccess
instead.
from ngmeta.
From the ui-router repo.
The $stateChange* events are deprecated in 1.0. They are replaced with the $transitions.on* transition hooks.
However, they can be re-enabled for backwards compatibility by including stateEvents.js and depending on the 'ui.router.state.events' angular module.
<script src="stateEvents.js">
var myApp = angular.module('myApp', ['ui.router', 'ui.router.state.events']);
Note: the code in stateEvents.js re-implements the $stateChange* events using the new Transition Hooks
from ngmeta.
Thanks @taasver !
The HACK, worked for me as well. Waiting for next version of ngMeta, with the real fix.
Now I hope google will index all my custom meta tags :)
I have some issues or feature request, but I will open them in different topic.
from ngmeta.
Any plans???
from ngmeta.
@taasver where can I find the app.run file to add that code?
from ngmeta.
Sorry, there might not be a file called app.run on your case.
But it needs to be in run block.
Maybe this will be help: https://stackoverflow.com/questions/20663076/angularjs-app-run-documentation
from ngmeta.
@taasver thanks! It worked perfectly. Hope they fix the module so we do not have to use this hack.
from ngmeta.
Should be fixed in v1.0.2. Please reopen if you still see this issue.
from ngmeta.
Related Issues (20)
- Doesn't work for skype links preview HOT 2
- ngMeta it's undefined in controller HOT 3
- Google won't use the meta information
- Not working with Webpack HOT 4
- ngMeta does not change title tag when placed in head HOT 1
- No substitution with grunt (angular 1.5.8) HOT 3
- Google Indexing Problem HOT 2
- google indexing does not index my description and title HOT 19
- One of my website meta tags are not initializing HOT 1
- Google search not using title, description tags HOT 2
- ngMeta is not initializing any more HOT 4
- Will this lib works for Facebook and Twitter? Or they would require server pre-caching of pages? HOT 1
- Not being able to display dynamic content HOT 1
- when i pen view source i don't see my title or description HOT 1
- How to use this with AngularJS Route? HOT 2
- WhatsApp not using ngMeta['og:description']
- README.md
- ngMeta.js:22 Uncaught TypeError: Cannot read property 'module' of undefined
- TypeError: Cannot read property 'meta' of undefined HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngmeta.