Premium Economy Software


Singapore
Perth W Australia

Blog

For SME's and Startups That Need Premium

We focus on startups and SME’s that need that need premium features

Find out how you can take your businesses to the next level

  • How a child’s $emit to the parent with Vue.js Works

    Vue.js is pretty cool and has some cool features. But one confusing feature is called components. Now I hate this technical jargon and it took me 2 hours to figure this out, mainly because of all the confusing Jargon. Why don’t coders speak like real people?

     

    Component

    I assume you know what a Vue.js component is. So image you have

    A Parent  —- >   A Child

     

    Now let’s image a real world scenario. A parent has thrown a ball to the child. The parent wants to know if the child has caught the ball.

     

    Child   –  Catches Ball              >>>  Parent  – On Hearing (got it!)
    – Shouts (emits) Got it                       – Says “He’s got it”

    So all $emit does is ‘shouts’ a key word (event) and all the parent has to do is listen for that Shout. It’s that simple.

     

    Let’s see how it looks in a code.

     

    <h2> My Vue Tutorial </h2>
    <div id='app' class='display'>

    <ol>
    <todo-item @i-got-it="parentClick"></todo-item>
    </ol>
    END
    </div>

    <template id='t1'>
    <div>
    <li>This is a todo {{name}} </li>
    <a  v-on:click='childGotBall'> click me 2 </a>
    </div>
    </template>

     

    <script>
    Vue.component('child', {
    template: '#t1',

    methods: {
    childGotBall() {
    alert('Child got ball')
    this.$emit('i-got-it',1)
    }
    }
    })

    var app = new Vue({
    el: '#app',

    methods: {
    parentSays() {
    alert('My Child Has It')
    }

    }
    //---

    })

     

     

     

     

     

 


  • How a child’s $emit to the parent with Vue.js Works May 13, 2017 - Vue.js is pretty cool and has some cool features. But one confusing feature is called components. Now I hate this technical jargon and it took me 2 hours to figure this out, mainly because of all the confusing Jargon. Why don’t coders speak like real people?   Component I assume you know what a Vue.js […]
  • Get Money From the Gov: Go Digital Programme March 24, 2017 - Singapore wants to go Digital. So shouldn’t you as well? Especially if the Singapore government is willing to invest (pay) you for it. More than $80 million for these programmes and they are willing to cover your business 70% of the costs. http://www.singaporebudget.gov.sg/budget_2017/BudgetSpeech/pb.aspx There’s two programmes 70% Off!  –   CDG – This is more structured […]
  • Karinderia Conversion to PHP 7 February 11, 2017 - I recently had the opportunity to take a look Karinderia and  apply it to our new PHP7 server. Karinderia is a multi-restaurant ordering system built in Yii 1.1.9. It’s very very comprehensive. Tips to Convert to PHP7. Documentation 1/5 Since the code is commercial, tips and coding advice is pretty difficult to come by. Bastikikang […]
  • Loki JS Quick Tutorial January 22, 2017 - Loki JS is a lightweight Javscript based no sql database that you can use in your hybrid apps. This week I messed around a bit, but I was upset that the documentation pretty much sucked, so I wrote some for you.   1. Installing Use the Node Package Manager (NPM) 2. Setup with Browsify So […]
  • Pricing Guides for Online Systems December 27, 2016 - From  Thunderquote Price Guide For Website Development In Singapore (Ecommerce, Mobile Responsive, CMS, WordPress) | ThunderQuote Posted on 23rd December, 2016 by Thunderquote Factors which you need to consider when making a website are: Size of business Rough Budget Competition Review Existing Content Need for a writer Frequency of updates Need for multiple languages Number […]
  • Ditch WordPress and Switch To Yii2 For Speed November 27, 2016 - By now you know that speed kills. Or rather the lack of speed on your website kills your business. Why? Search Ranking Suffer Google hates slow sites. If your website is slow, it’s probably going to rank very poorly in search, meaning customers will not find you on the search. Why wordpress is so slow… […]
  • 3 Reasons Why You Should Use Opencart As Your Ecommerce ShoppingCart November 16, 2016 - #1 You Want Control Some businesses want to control their data and their website their IP. There’s always a ‘what if’ when data is stored somewhere else. There’s also a ‘what if’ the company you are hosting with drops in service and quality or if they start raising prices. If you are using SAAS it […]
  • Gap Between Online and Offline Commerce Is Shrinking November 4, 2016 - Reposted from Hamzah Alsagoff 2016 will see the deepening of several ongoing trends that are shrinking the gap between ecommerce and physical retail. This year, retailers will look to leverage better fulfillment options, local advertising tools, offline attribution and omnichannel tools, as explored in a new eMarketer report, “US Holiday Ecommerce Preview 2016: Mobile to Fuel […]
  • Yii2 + PHP vs Ruby on Rails : When the Ruby Lost Its Shine October 22, 2016 - How the Ruby Lost It’s Shine In order to know why, we need to look at the history. Once upon a time there was Java. The powerful virtual language to work on any platform. Except that there was a catch, it was too big, too powerful to work for web sites that simply served up […]
  • Yii2 vs Laveral – framework… Which Is Better For Web Development? October 19, 2016 - I found this post by Richardo and I think this best sums up the Yii vs Laravel Battle Ricardo Obregón, Yii Coder and Consultant   CodeIgniter? Just forget it. It is outdated and requires much more work to get simple things done. In my experience, in spite of Laravel is more popular (and in some […]