Is it possible to use angularjs 1 with ionic2 - ionic2

I'm trying to create a mobile hybrid application, i want to choose my frameworks and stuff.
I am familiar with angularjs 1, I know nothing about the 2.
Can we use ionic framework 2 with angularjs 1? I couldn't find examples.
I used before jquery mobile with angularjs 1 and working fine, but the performance, css design and stuff are poor. Any advice?

Related

is it possible to use regular Django+templates and Django restframework+a javascript framework in the same project?

I'm just wondering since Jquery is used less and less and instead of classic use with Ajax, if it is possible to let for example React or Vue handle all of the functionality where Javascript would be needed with DRF in one hand , and consider all of it as statics.
And in the other hand, keep working with Django and regular templates.
i'm just asking about the possiblity to do so.
Yes. There are many tutorials available for using Django, some with Wagtail as a CMS, with DRF as the backend. You can use a single template, and Vue or ReactJS for the front-end.
Here's a workshop video that might help get you started from the folks at Learn Wagtail: https://www.youtube.com/watch?v=xUWd3o6z2bk
(I chose Wagtail, because it is a popular Django CMS with DRF API endpoints out-of-the box.)

Do I have to use jquery mobile with phonegap to make a hybird app

I have developed a web app using html, css, jquery and django, and has made it compatible for the screen in mobile devices. But now I want to make it a hybrid app for android/ios and users can install it for extra features. Googled and found phonegap to be a perfect solution. On further searching for the tutorial, most of the tutorial are using jquery mobile for the purpose. My question is, do I need to use jquery mobile to develop a phonegap hybrid app?
No, its not needed, jQuery, without mobile version, its perfectly capable of working with Cordova (I have also made several professional projects with it).
The only limitation is with some touch events, like swipe or pinch to zoom, in what you are going to need another library, like hammerjs

How to use angular 2 in django 1.8?

I am novice to angular 2 . i am trying to use angular 2 framework in django 1.8. Is there any way we can use angular 2 in django ? i am looking for a simple example which will help me to build application. can anyone tell me How to do it?
Little help or any link I will appreciate it.
Angular is a framework to create client-side applications, while Django is a framework for server-side applications. I don't really see any use case for using Angular inside Django. Perhaps you're looking for a way to create a bridge between client and backend.
You could create an API with Django and create an client-side interface with Angular 2, if that makes any sense.

Facebook ReactJS and Zurb Foundation for Apps?

I like Zurb Foundation (SASS and especially Zurb Foundation for Apps) but would like to use it with Facebook ReactJS and Flux
That is removing AngularJS and replacing it with ReactJS / Flux. A great start towards this goal has been made by Kiran Abburi:
https://github.com/akiran/react-foundation-apps
http://webrafter.com/opensource/react-foundation-apps
What do people think about the long-term viability of using Zurb Foundation for Apps with Facebook ReactJS / Flux like this?
From both technical and ecosystem perspective (e.g. updates).
Or alternatively, is a CSS framework like Zurb Foundation (or Twitter Bootstrap) really beneficial at all with ReactJS / Flux.
Thanks,
Ashley.
Well whatever css framework pair up with whatever shouldn't be your long-term viability concern. Front End technologies changes too fast. IE. for the mainstream, couple years ago everything is jquery, than comes backbone, ember, angular, now react.js and than maybe riot.js. When Angular 2 releases stable version, it probably shift it again.
Your questions should be which ever framework help you do YOUR JOB quicker. Different clients might want different things, some clients i dealt with uses Bootstrap, they provide their corporate design patterns and some of their reusable jQuery * bootstrap widgets to implement, some gave me backbone models and ask me to use it in an angular as an angular service. And some asks me to do it in stylus instead of sass.
So pairing up css and js framework isn't any of my concern for long term, the trend changes too quickly. And the good thing about react is that you can bundle all these third party libraries into one single component ( if you really want do do that. Eg; embedded css into complement with react-styles, if some of your component uses jQuery, you can do a script lazy load at componentWillMount life cycle. ), you got the total freedom, if some strange case that you want to uses both foundation popup and bootstrap popup together on the same page, you can write your own react components to wrap one of each, as long as you got the scope well managed.
Which ever css framework you use as long as it saves you time to do things is beneficial, there isn't a best one, my team built our own css and js framework on top of any libraries to tailor it for our job.

BDD when testing a web service / API

I am still trying to totally understand BDD and I am facing some doubts.
From my little experience, I have been using it to automate user acceptance test and I would like to know if it's possible to use it to test a web API, without UI.
In the past I've used BDD using the given-when-then jargon and mapping the steps to UI interactions. I've done this with Specflow in ASP.NET or cucumber/capybara in ruby on rails.
So for example we could have scenarios like this:
Given I am in the home page
When I click login button
Then I should see the login page
The current project I am working at is different. We are implementing an API based in web service which would be consumed by different type of clients. Like an iphone app, android app and an asp based web client. So our main focus is based in the back-end and just that.
In this case, the tests can't be faced from the UI point of view. So our end-to-end tests are based in our service endpoints. We pass some input arguments to a service calls and check the outputs.
Can we do this using BDD? Is this right?
or maybe it would be better to use a different thing like FitNesse?
Hmm.. is using FitNesse doing BDD?
I think you can do what your writing about in BDD. I'm not sure if those 2 links about testing of webservices with SpecFlow will help you but take a look on them if you haven't seen it yet.
http://codedetective.blogspot.co.uk/2012/10/testing-webservices-with-specflow.html
http://www.creamdog.se/blog/2011/02/24/webservices-automated-tests-using-specflow-and-babelfish/
Have a look at Karate, web service testing framework by Intuit. It's recently being open sourced. It has the capability of handling API dealing with HTML, JSON, XML, GraphQL queries and is built on top on cucumber.
Simple intro here : https://medium.com/blueprint-by-intuit/karate-web-services-testing-made-simple-366e8eb5adc0#.qnpy5gagt