Closed ansonphong closed 10 years ago
If you look in templates/panels/post_link.html
template, you will see an implementation of ng-switch using multiple conditionals with an OR operator. ng-switch-when="url_input || post_input"
You can find an Angular config which enables this in postworld.js
: ngSwitchWhenDirective
// ADDS THE ABILITY FOR || OR OPERATOR IN NG-SWITCH
angular.module('postworld', []).
config(function($routeProvider, $provide) {
...
You can copy that config into our pwApp module.
Hi Michel, I've assigned myself to do this now that I got the edit-form controller under control - I'll be able to implement this easily, although I'll still need your support with plugging in the embedly_extract() functionality. I'll let you know when it's ready for your input.
Hi Michel, I have added a controller called post-link to the documentation. https://github.com/phongmedia/postworld/tree/master/js#post-link--controller-
Here is an illustration of end user functionality:
Is this best suited as a controller or something else? Let me know what you think.